#monkeyt

1 messages · Page 1 of 1 (latest)

copper forgeBOT
serene lichen
thorn ridge
#

Ah thanks!
Looking at the implementation of Stripe-hosted page, I notice that the API to create a checkout session requires an array of line items. I'm confused whether it's not advisable to use Stripe-hosted page in my case, where I only want to pass the final total amount to Stripe.

The reason I only want to pass the final amount is because we have some other business logics involved.

serene lichen
#

I'd always recommend using Checkout as the default option since it's so much easier. You can have a line item array of length 1

thorn ridge
#

Ok thanks! I will try using Checkout with line_items.price_data