Closed carlosescri closed 8 years ago
Ah yes, this is true. This is expected from our API standpoint since recurly.paypal
does not know about your form at all, whereas you may pass your form reference to recurly.token
-- this is the mechanism by which recurly.token
will know to look for a token field to update.
I have both PayPal and Wirecard gateways and they share almost the same javascript code to retrieve the token.
I have a hidden input field like this:
When I use
recurly.token()
(regular workflow for wirecard gateway) the field gets updated automatically with the token (I suppose it's thanks to thedata-recurly
attribute) but when the payment method is PayPal and I callrecurly.paypal()
, after returning to the main window the field is not updated.I've fixed this by forcing the update myself in my callback but I think it's an unexpected behavior. Both methods should behave the same (both update the field or both don't).