Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit ef25a55fcc06817de043e0cc87e8dc365f5a7a86 1 parent 5b20a80
Emery Denuccio authored July 18, 2011
20  examples/gridsystem.html
@@ -11,10 +11,9 @@
11 11
 <script>
12 12
   $(function() {
13 13
     Recurly.config({
14  
-      /* environment: 'sandbox' */
15  
-    /* , subdomain: 'recurlyjsdemo-test' */
16  
-
17  
-      baseURL: 'https://api-sandbox.dev.recurly.com/jsonp/emery-test/'
  14
+//    environment: 'sandbox'
  15
+//  , subdomain: 'recurlyjsdemo-test'
  16
+      baseURL: 'https://api-sandbox.dev.recurly.com/jsonp/recurlyjsdemo-test/'
18 17
     , currency: 'GBP'
19 18
     , country: 'GB'
20 19
     , VATPercent: 10
@@ -22,15 +21,16 @@
22 21
 
23 22
     Recurly.buildSubscribeForm({
24 23
       target: '#recurly-subscribe'
25  
-    , plan: 'gold'
  24
+    , plan: 'complexplan'
26 25
     , addressRequirement: 'full'
27  
-    , successURL: 'success.html?account_code={account_code}'
  26
+    , successURL: 'confirmation.html?account_code={account_code}'
  27
+    , enableCoupons: false
28 28
     });
29 29
 
30 30
     $('#test').click(function() {
31  
-      $('.first_name input').val('emery').change();
32  
-      $('.last_name input').val('denuccio').change();
33  
-      $('.email input').val('emery+test@recurly.com').change();
  31
+      $('.first_name input').val('joe').change();
  32
+      $('.last_name input').val('user').change();
  33
+      $('.email input').val('joeuser@example.com').change();
34 34
       $('.card_number input').val('4111-1111-1111-1111').change();
35 35
       $('.cvv input').val('123').change();
36 36
     });
@@ -73,10 +73,10 @@
73 73
       </p>
74 74
 		</div>
75 75
 		<div id="footer">
76  
-      <button id="test">test</button>
77 76
 
78 77
       <div id="demo480">480px</div>
79 78
       <div id="demo960">960px</div>
  79
+      <button id="test">test</button>
80 80
 		</div>
81 81
 	</div>
82 82
 </div>
18  examples/simple.html
@@ -10,7 +10,9 @@
10 10
 <script>
11 11
   $(function() {
12 12
     Recurly.config({
13  
-      baseURL: 'https://api-sandbox.dev.recurly.com/jsonp/emery-test/'
  13
+//    environment: 'sandbox'
  14
+//  , subdomain: 'recurlyjsdemo-test'
  15
+      baseURL: 'https://api-sandbox.dev.recurly.com/jsonp/recurlyjsdemo-test/'
14 16
     , currency: 'GBP'
15 17
     , country: 'GB'
16 18
     , VATPercent: 10
@@ -18,17 +20,9 @@
18 20
 
19 21
     Recurly.buildSubscribeForm({
20 22
       target: '#recurly-subscribe'
21  
-    , plan: 'test'
22  
-    , addressRequirement: 'zip'
23  
-    , successURL: 'http://google.com?account_code={account_code}'
24  
-    });
25  
-
26  
-    $('#test').click(function() {
27  
-      $('.first_name input').val('emery').change();
28  
-      $('.last_name input').val('denuccio').change();
29  
-      $('.email input').val('emery+test@recurly.com').change();
30  
-      $('.card_number input').val('4111-1111-1111-1111').change();
31  
-      $('.cvv input').val('123').change();
  23
+    , plan: 'simpleplan'
  24
+    , addressRequirement: 'zipstreet'
  25
+    , successURL: 'confirmation.html?account_code={account_code}'
32 26
     });
33 27
   });
34 28
 </script> 
8  recurly.js
@@ -594,6 +594,12 @@ R.BillingInfo = {
594 594
     , year: this.expires.getFullYear()
595 595
     , number: this.number
596 596
     , verification_value: this.cvv
  597
+    , address1: this.address1
  598
+    , address2: this.address2
  599
+    , city: this.city
  600
+    , state: this.state
  601
+    , zip: this.zip
  602
+    , country: this.country
597 603
     };
598 604
   }
599 605
 };
@@ -1185,7 +1191,7 @@ R.buildSubscribeForm = function(options) {
1185 1191
         }
1186 1192
  
1187 1193
         // Treat nonexistence as removed deliberately
1188  
-        if($input.length == 0) return null;
  1194
+        if($input.length == 0) return undefined;
1189 1195
 
1190 1196
         var val = $input.val();
1191 1197
 

0 notes on commit ef25a55

Please sign in to comment.
Something went wrong with that request. Please try again.