Currently, even though the confirmSetupIntent is successful, the plugin just returns an empty JavaScript object {} upon success. It is important to get the paymentMethodId from a successful confirmation so that the paymentMethodId is registered to the Stripe User.
This Pull Request just returns the paymentMethodId when confirmSetupIntent succeeds. I don't know where to get the other data that the interface ConfirmSetupIntentResponse has, however, this should help make confirmSetupIntent at least useful in iOS.
This only affects iOS.
Currently, even though the
confirmSetupIntent
is successful, the plugin just returns an empty JavaScript object{}
upon success. It is important to get thepaymentMethodId
from a successful confirmation so that thepaymentMethodId
is registered to the Stripe User.This Pull Request just returns the
paymentMethodId
whenconfirmSetupIntent
succeeds. I don't know where to get the other data that the interfaceConfirmSetupIntentResponse
has, however, this should help makeconfirmSetupIntent
at least useful in iOS.