Permalink
Browse files

missing billing info bug fix, and linked up to test account on QA

  • Loading branch information...
1 parent 5b20a80 commit ef25a55fcc06817de043e0cc87e8dc365f5a7a86 @em em committed Jul 19, 2011
Showing with 23 additions and 23 deletions.
  1. +10 −10 examples/gridsystem.html
  2. +6 −12 examples/simple.html
  3. +7 −1 recurly.js
View
@@ -11,26 +11,26 @@
<script>
$(function() {
Recurly.config({
- /* environment: 'sandbox' */
- /* , subdomain: 'recurlyjsdemo-test' */
-
- baseURL: 'https://api-sandbox.dev.recurly.com/jsonp/emery-test/'
+// environment: 'sandbox'
+// , subdomain: 'recurlyjsdemo-test'
+ baseURL: 'https://api-sandbox.dev.recurly.com/jsonp/recurlyjsdemo-test/'
, currency: 'GBP'
, country: 'GB'
, VATPercent: 10
});
Recurly.buildSubscribeForm({
target: '#recurly-subscribe'
- , plan: 'gold'
+ , plan: 'complexplan'
, addressRequirement: 'full'
- , successURL: 'success.html?account_code={account_code}'
+ , successURL: 'confirmation.html?account_code={account_code}'
+ , enableCoupons: false
});
$('#test').click(function() {
- $('.first_name input').val('emery').change();
- $('.last_name input').val('denuccio').change();
- $('.email input').val('emery+test@recurly.com').change();
+ $('.first_name input').val('joe').change();
+ $('.last_name input').val('user').change();
+ $('.email input').val('joeuser@example.com').change();
$('.card_number input').val('4111-1111-1111-1111').change();
$('.cvv input').val('123').change();
});
@@ -73,10 +73,10 @@
</p>
</div>
<div id="footer">
- <button id="test">test</button>
<div id="demo480">480px</div>
<div id="demo960">960px</div>
+ <button id="test">test</button>
</div>
</div>
</div>
View
@@ -10,25 +10,19 @@
<script>
$(function() {
Recurly.config({
- baseURL: 'https://api-sandbox.dev.recurly.com/jsonp/emery-test/'
+// environment: 'sandbox'
+// , subdomain: 'recurlyjsdemo-test'
+ baseURL: 'https://api-sandbox.dev.recurly.com/jsonp/recurlyjsdemo-test/'
, currency: 'GBP'
, country: 'GB'
, VATPercent: 10
});
Recurly.buildSubscribeForm({
target: '#recurly-subscribe'
- , plan: 'test'
- , addressRequirement: 'zip'
- , successURL: 'http://google.com?account_code={account_code}'
- });
-
- $('#test').click(function() {
- $('.first_name input').val('emery').change();
- $('.last_name input').val('denuccio').change();
- $('.email input').val('emery+test@recurly.com').change();
- $('.card_number input').val('4111-1111-1111-1111').change();
- $('.cvv input').val('123').change();
+ , plan: 'simpleplan'
+ , addressRequirement: 'zipstreet'
+ , successURL: 'confirmation.html?account_code={account_code}'
});
});
</script>
View
@@ -594,6 +594,12 @@ R.BillingInfo = {
, year: this.expires.getFullYear()
, number: this.number
, verification_value: this.cvv
+ , address1: this.address1
+ , address2: this.address2
+ , city: this.city
+ , state: this.state
+ , zip: this.zip
+ , country: this.country
};
}
};
@@ -1185,7 +1191,7 @@ R.buildSubscribeForm = function(options) {
}
// Treat nonexistence as removed deliberately
- if($input.length == 0) return null;
+ if($input.length == 0) return undefined;
var val = $input.val();

0 comments on commit ef25a55

Please sign in to comment.