stripe payment integrated

This commit is contained in:
Sanidhya Kumar Verma
2024-09-04 11:05:39 +00:00
committed by GitHub
parent 19f0e71609
commit 02dbd6c7af
3 changed files with 255 additions and 67 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export async function POST(req: Request) {
const paymentIntent = await stripe.paymentIntents.create({
amount: parseInt(amount) * 100,
currency: "usd",
currency: "USD",
customer: customer.id,
automatic_payment_methods: {
enabled: true,