Skip to content

Commit c8791fa

Browse files
convert dollars to cents when sending data to Stripe
1 parent 6fe1782 commit c8791fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/customerPaymentService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export async function createCustomerPayment(
9797
req,
9898
) {
9999
const intentBody = {
100-
amount,
100+
amount: amount * 100, // Stripe uses the smallest unit (cents)
101101
currency: _.lowerCase(currency),
102102
payment_method: paymentMethodId,
103103
capture_method: STRIPE_CONSTANT.CAPTURE_METHOD,

0 commit comments

Comments
 (0)