📜  stripe confirmcardpayment - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:19.835000             🧑  作者: Mango

代码示例1
stripe
  .confirmCardPayment('{PAYMENT_INTENT_CLIENT_SECRET}', {
    payment_method: {
      card: cardElement,
      billing_details: {
        name: 'Jenny Rosen',
      },
    },
  })
  .then(function(result) {
    // Handle result.error or result.paymentIntent
  });