#trong.tran
1 messages · Page 1 of 1 (latest)
Hi there, how can I help?
hi Jack Tan
i read this section and i understand that when paying in USD, the amount must be multiplied by 100
OK, so what's your question?
but when i get a response from Stripe API, the amount is still multiplied by 100, how can i get the original amount back when it hasn't multiplied by 100
example: i payment 10$, i must be multiplied 100.
10*100 = 10,00$
i received response from Stripe API is 1000
the actual amount I paid is only 10
so i want to show the amount i paid in my website, i have to divide it by 100 right?
Is there any way I get the actual amount I paid from the API?
We don't return a currency formatted amount in the API response. You'd be responsible for handling that in your application
There are various test cards here (https://stripe.com/docs/testing) that simulate a lot of different scenarios
I have selected card "4000000000000069" with cvc:123, but still the payment is successful, what is the reason?
Can you share the pi_xxx ID?
I'd recommend not using that API directly
That payment used the 4242 card which will always be successful
I don't understand I entered another tag but it still shows tag 4242, do you know why?
No without seeing the code you used. https://dashboard.stripe.com/test/logs/req_htmedkrknSdKMI
Seems we charged the default_source for cus_Nq0fwnEvXrYsUz. You didn't pass card details directly
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So in this case I want my customer to enter another card, what should I do?
You'd need to build a UI with Elements to handle collecting that information: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
in the above case I am understanding that with account cus_Nq0fwnEvXrYsUz I attached card 4242 to that account, after I pay the amount will be deducted from card 4242 of account cus_Nq0fwnEvXrYsUz and not using the card I entered correctly Are not?