Skip to content

Commit

Permalink
Update stripeController.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Apr 27, 2024
1 parent 639239d commit 79ad61f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion api/src/controllers/stripeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ export const createPaymentIntent = async (req: Request, res: Response) => {
// For example, to charge 10 USD, provide an amount value of 1000 (that is, 1000 cents).
amount: Math.floor(amount * 100),
currency,
payment_method_types: ['card'],
receipt_email: receiptEmail,
description,
customer: customer.id,
automatic_payment_methods: {
enabled: true,
},
})

//
Expand Down
2 changes: 1 addition & 1 deletion mobile/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@stripe/stripe-react-native",
{
"merchantIdentifier": "MERCHANT_IDENTIFIER",
"enableGooglePay": false
"enableGooglePay": true
}
]
],
Expand Down

0 comments on commit 79ad61f

Please sign in to comment.