Create Payment Method
Create a PaymentMethod
Last verified 2026-09-24
Is this helpful?
stripe.createPaymentMethod(paymentMethodData: object) Use stripe.createPaymentMethod to convert payment information collected by elements into a PaymentMethod object that you safely pass to your server to use in an API call. NOTE: In most integrations, you will not need to use this method. Instead, use methods like stripe.confirmCardPayment, which will automatically create a PaymentMethod when you confirm a PaymentIntent. - paymentMethodData Refer to the PaymentMethod API for a full list of parameters. - type The type of the PaymentMethod to create. Refer to the PaymentMethod API for all possible values. - card A card or cardNumber Element. - au_becs_debit An auBankAccount Element. - fpx An fpx Element. - fpx[bank] The customer's bank. - netbanking[bank] The customer's bank. - ideal An idealBank Element. - ideal[bank] The customer's bank. - sepa_debit An iban Element. - sepa_debit[iban] An the related setting account number. - upi[vpa] The customer's VPA. - billing_details Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. ### Example title Create a PaymentMethod Is this helpful?