Edit a credit card using Stripe checkout.js

前端 未结 2 1735
无人及你
无人及你 2021-02-05 19:35

Checkout from Stripe has a great way to add a credit card for a transaction, by simply invoking StripeCheckout.open().

<

2条回答
  •  清酒与你
    2021-02-05 19:49

    There is no way to edit a card that way. What you can do though is use Stripe Checkout to ask your customer for a new card without asking him to pay anything. The idea is to avoid setting the amount or data-amount parameter.

    You would get a new card token for that new card and you could then use the Update Customer API to save the new card on the customer.

    As for your second question, there is unfortunately no unminified version of Checkout.js accessible at the moment.

提交回复
热议问题