#Sandeep
1 messages · Page 1 of 1 (latest)
Hello! What's your question about that error?
I am using node to create the payment intent when I am passing the parameters amount it giving this error
so I want to know if the error is from the my backend or am i passing the parameters wrong
i am from india
The error indicates you're passing in a decimal number instead of an integer.
3997.9999999999995 is not an integer.
When creating a Payment Intent the amount must be an integer which specifies the amount in the lowest unit of the currency in question: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-amount
ok it got resolved
can u give me a basic syntax to include the customer name and address in the parameters for Indian payments
The name and address are typically included in the billing_details when creating the Payment Method. How are you collecting the payment details?
using cardElement
can u send a example one
how to pass to parameters like amount,currency
There's a code snippet here that shows how to pass in billing_details when calling stripe.confirmCardPayment: https://stripe.com/docs/js/payment_intents/confirm_card_payment
when i put address and name it is giving this error
You do that on the frontend, in your client-side JavaScript, not when creating the Payment Intent.