#wangenye
1 messages · Page 1 of 1 (latest)
Can you share the Payment Intent ID (pi_xxx)?
IMO, this is the issue https://stripe.com/docs/currencies#zero-decimal
Yup! Stripe integration follows minor unit of the currency. For example 100 cents will be USD 1.00
For some currencies, they use smallest unit, so it will be cent for USD
Correct!
Only on the Google Pay PRB ?
Minor unit (smallest currency) applies to all Stripe integrations, not limited to PRB
A moment I share the Payment Intent ID.
Payment Intent ID: pm_1NVozCCsUu7D4wGvc34iFW6X
This is the payment method ID, not payment intent ID. Payment Intent ID should start with pi_xxx
Anyway, I found the Payment Intent that used this payment method ID: https://dashboard.stripe.com/test/payments/pi_3NVozECsUu7D4wGv0u3qCzsC
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The amount looks correct to me with USD 100
Thank you. On the Google pay dialog box, its displaying $1.00
When you create the PRB instance at client, did you set the amount correctly?
https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-create-payment-request-instance
total.amount parameter should be set to 10000 as well
const paymentRequest = stripe.paymentRequest({
country: 'US',
currency: 'usd',
total: {
label: 'Demo total',
amount: 10000,
},
requestPayerName: true,
requestPayerEmail: true,
});
If I set it to 1000, which I have. Will it charge 100 or 1000 , my worry is overcharging.
The charge amount will be based on the Payment Intent amount. The amount in payment request instance is for display purpose and should be the same as the amount created in the Payment Intent. Customer may raise a dispute if he/she sees the discrepancy
Awesome, Thank you.