Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

stripe confirm card payment {ESNext}

const {paymentIntent, error} = await stripe.confirmCardPayment(
  '{PAYMENT_INTENT_CLIENT_SECRET}',
  {
    payment_method: {
      card: cardElement,
      billing_details: {
        name: 'Jenny Rosen',
      },
    },
  },
);
Source by stripe.com #
 
PREVIOUS NEXT
Tagged: #stripe #confirm #card #payment
ADD COMMENT
Topic
Name
6+3 =