I am using the embedded nodejs/javascript Stripe Checkout for my custom ecommerce site. I have my own cart created using DB2, and want to pass the name of the products the customer has in the cart, and the matching prices for each product. Stripe is not very clear on how to do this, and i’ve been struggling to find the
Tag: stripe-payments
How should I pass `cardNumberElement`, `cardExpiryElement` and `cardCvcElement` into `stripe.confirmCardPayment`’s `payment_method.card`?
In stripe docs, I can easily create a card like this And I simpliy pass the cardElement to confirmCardPayment However, for visual style css reason, I have to split cardElement in to three pieces like this: Then I want to call stripe.confirmCardPayment, what should I do right now? The doc only shows cardElement method, no splitted example. Answer You can
PHP/Javascript – Add payment method with Stripe API
I am using Wordpress, but I am using an “out of the box” solution because my client requested it specifically. I have this Javascript which creates a form and when the form is submitted it creates a cookie with the token in it, so I can retrieve it from PHP, it looks like this: When the form is submitted, it