Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit 31ea1b1

Browse files
committed
Add payment process with stripe
1 parent bd6ff8d commit 31ea1b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/pages/Course/ApplyModal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ export default function ApplyModal({ batch, fullWidth = false, ...rest }) {
9090
{ price: batch.priceId, quantity: 1 }
9191
],
9292
mode: 'payment',
93-
successUrl: 'https://codeforcause.org/success',
94-
cancelUrl: 'https://codeforcause.org/canceled'
93+
successUrl: `https://${window.location.hostname}/success`,
94+
cancelUrl: `https://${window.location.hostname}/canceled`
9595
})
9696
.then(function(result) {
9797
// If `redirectToCheckout` fails due to a browser or network

0 commit comments

Comments
 (0)