#mrelliot69
1 messages · Page 1 of 1 (latest)
👋 how may I help?
you can use Checkout Sessions or Invoices
then you can use Invoices
you can use PaymentIntents, but they only provide a way of passing an amount, and not a product ID. you can then add some metadata if you want
to identify which product/service the payment was made for
Hi! I'm taking over my colleague. Please, let me know if you have any other questions.
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Yes. You can use the unit_amount
unit_amount_decimal allows you to specify cents as decimal values: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-unit_amount_decimal
what i want to know is which one should i use then charding , because if the amount specifie on the product is decimal the unit_amount will have an incorrect value since its an integer or not?
that is what i want to confirm
You should use unit_amount in most cases. if you want to charge $100, set unit_amount: 10000.
the products are created via stripe dashboard
thats why im trying to confirm which property should i use
unit_amount is the one.
i retrive the object and both are filled with the same value, thats why i im question why i can use the dicmal one? does stripe have any problem or not set it sometimes?
It might work differently for other currencies.
Hey! Taking over for my colleague. Let me catch up.
ok ty, i will wait
I'm not sure I understand what is the main issue you are facing ?
You want to use what attribute ?
its not an issue im just trying to understand which atribute i can rely on the create a charge based on the product value of stripe
unit_amount or the unit_amount_decimal
use unit_amount: A non-negative integer in cents representing how much to charge.
ok perfect