Skip to content

Commit

Permalink
feat(web/top-ups): allow promo codes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminshafii committed Nov 29, 2024
1 parent b419a5a commit 871f8c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/app/api/top-up/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export async function POST(req: NextRequest) {
mode: "payment",
success_url: `${targetUrl}/top-up-success`,
cancel_url: `${targetUrl}/top-up-cancelled`,
allow_promotion_codes: true,
metadata: {
userId,
type: "top_up",
Expand Down

0 comments on commit 871f8c7

Please sign in to comment.