Skip to content

Commit

Permalink
comment out paymentMethods create
Browse files Browse the repository at this point in the history
  • Loading branch information
ih-abir committed Feb 8, 2024
1 parent 7eb44c4 commit 1df7ebf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/workers/dilmahtea-me-stripe/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ const handlePOST = async (request, env, ctx) => {
// Create new Checkout Session for the order.
// Redirects the customer to s Stripe checkout page.
// @see https://stripe.com/docs/payments/accept-a-payment?integration=checkout
const paymentMethod = await stripe.paymentMethods.create({
type: 'paypal',
paypal: {
payer_email: email,
},
});
// const paymentMethod = await stripe.paymentMethods.create({
// type: 'paypal',
// paypal: {
// payer_email: email,
// },
// });

function convertPriceToCents(price, quantity = 1) {
return Math.round(price * quantity * 100);
Expand Down

0 comments on commit 1df7ebf

Please sign in to comment.