#aabycereno

1 messages · Page 1 of 1 (latest)

steep widgetBOT
chrome musk
#

Hi, let me help you with this.

#

should I just pass my total price to stripe checkout
What do you mean by this exactly? It depends on what you're trying to do.

fading crane
#

cause i have a checkout button for my ecommerce website, and basically the totalprice in the cart is what I want to pass in the stripe checkout page

chrome musk
#

With Stripe Checkout is best to have Stripe Products/Prices mapped to your own products and then add them to the session.

But if you just want to pass the total amount, use the price_data.unit_amount.

steep widgetBOT
fading crane
#

ok i think thats better, but if i want to pass multiple objects? with product_name, product_id, product_price. what would be the structure of the data or name of the keys that i need to pass to the checkout?

main egret
#

it's an array so you just pass multiple objects