#taxeve_93439
1 messages · Page 1 of 1 (latest)
The threads in this channel are short-lived and won't be open permanently
Okay.
When you create a Checkout Session, you may use ad-hoc price using price_data in line_items with the total sum to collect, so that no item breakdown will be shown.
You may refer to the example here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#redirect-customers
We have seen this before. There is this particular section in the code:
product_data: {
name: 'T-shirt',
},
unit_amount: 2000,
},
quantity: 1,
The product name and quantity is mentioned here. This is exactly what I am trying to avoid.
Hello @west gale, are you checking this?
Thanks for waiting! Discord is busy now
I'm afraid it is not possible to just show final amount only in the Checkout Session page. Stripe requires product name and quantity to be set and show the information accordingly
But why is this mandatory? We are showing all the data in our checkout page, why should we display the exact same thing in Stripe payment page?
It is repetitive and it will require us to do additional calculations on the server for no reason!
Stripe uses line_items to calculate the final amount. For most of other users, they use Checkout Session to display the items for payment.
If you do not wish to product information shown, I'd recommend using Payment Element instead: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
Okay, we will look into this.