diff options
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | epirts.js | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -30,6 +30,9 @@ Methods cvc: '123' }, stripeResponseHandler); + The callback function will be given two arguments, a `status` code and a + `response` object. + * `Epirts.card.validateCardNumber(number)` Checks that the card number appears valid and passes the Luhn check. @@ -78,8 +78,8 @@ var Stripe = Epirts = (function() { script.async = true; func = 'sjsonp' + ++_cb_time; - window[func] = function(result) { - callback(result); + window[func] = function(response, status) { + callback(status, response); script.parentNode.removeChild(script); } |