kit.payments.payWithSavedMethod()| Field | Type | Required | Description |
|---|---|---|---|
paymentIntentId | string | No | If given, confirms this existing PaymentIntent off-session instead of creating a new one. |
amount | number | Only if paymentIntentId is not given | Amount in minor currency units, minimum 50. |
currency | string | Only if paymentIntentId is not given | 3-letter ISO code. |
customerId | string | Yes | The customer being charged. |
paymentMethodId | string | Yes | The saved payment method to charge. |
description | string | No | Description on the PaymentIntent. |
metadata | Record<string,string> | No | Merged with source: "stripekit_saved_method". |
returnUrl | string | No | Only used when confirming an existing paymentIntentId. |
status is 'requires_action' and requiresAction is true, in which case you'll need to bring the customer back to complete verification using clientSecret.| Exception | When |
|---|---|
ConfigurationError | Neither paymentIntentId nor both amount and currency were provided. |
ValidationError | amount is below the 50 minor unit minimum, or currency is invalid. |
StripeOperationError | The card is declined, or Stripe otherwise rejects the charge. |
off_session: true and confirm: true under the hood, since the entire point of this method is charging without the customer present.paymentIntentId given), redirect-based payment methods are disabled (allow_redirects: 'never'), since there is no customer present to redirect.savePayment() when a storage adapter is configured.