#wangenye

1 messages · Page 1 of 1 (latest)

rugged wolfBOT
loud patrol
#

Can you share the Payment Intent ID (pi_xxx)?

languid solar
loud patrol
#

Yup! Stripe integration follows minor unit of the currency. For example 100 cents will be USD 1.00

languid solar
#

For some currencies, they use smallest unit, so it will be cent for USD

loud patrol
#

Correct!

round urchin
#

Only on the Google Pay PRB ?

loud patrol
#

Minor unit (smallest currency) applies to all Stripe integrations, not limited to PRB

round urchin
#

A moment I share the Payment Intent ID.

round urchin
#

Payment Intent ID: pm_1NVozCCsUu7D4wGvc34iFW6X

loud patrol
#

This is the payment method ID, not payment intent ID. Payment Intent ID should start with pi_xxx

#

The amount looks correct to me with USD 100

round urchin
#

Thank you. On the Google pay dialog box, its displaying $1.00

loud patrol
#

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,
});
round urchin
#

If I set it to 1000, which I have. Will it charge 100 or 1000 , my worry is overcharging.

loud patrol
#

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

round urchin
#

Awesome, Thank you.