Payment intents
Finish Stripe 3-D Secure verification after a purchase asks for it.
Gets a payment intent, including the client secret Stripe needs to run 3-D
Secure. Call it when subbly.checkout.purchase rejects with
code: 'payment_requires_action'; the rejection carries the ID to pass here.
Needs an authenticated customer.
Method parameters
paymentIntentIdRequiredstringID of the payment intent. Read it from err.paymentIntentId on the purchase
error.
ReturnsPromise<PaymentIntentResponse>
The payment intent.
Get the client secret
Tells Subbly that Stripe finished verifying the payment intent. Call
subbly.checkout.purchase again afterwards to finish the order. Needs an
authenticated customer.
Method parameters
paymentIntentIdRequiredstringID of the Subbly payment intent, from err.paymentIntentId.
externalPaymentIdRequiredstringID Stripe gave back: the paymentIntent.id from stripe.confirmCardPayment.
ReturnsPromise<PaymentIntentResponse>
The payment intent, with its new status.
Finish a 3-D Secure purchase