Skip to content

Commit

Permalink
fix(payments): lowercase payment method (#1329)
Browse files Browse the repository at this point in the history
Payment types are capital, we need them to be lowercase

Fix for: #1327
  • Loading branch information
IanKrieger authored Aug 22, 2024
1 parent 7365a93 commit 48a54d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkout/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function createPaymentSession(
body: JSON.stringify({
advertiserId,
campaignId,
paymentMethod,
paymentMethod: paymentMethod ? paymentMethod.toLowerCase() : undefined,
}),
});

Expand Down

0 comments on commit 48a54d5

Please sign in to comment.