Skip to content

Commit

Permalink
adjust payment step
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Jun 9, 2024
1 parent 5ae56bd commit 203638c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/submission_form/payment_step.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default {
methods: {
async submit () {
if (this.sessionId) {
return fetch((this.baseUrl || '/embed').replace('/embed', '/api/stripe_payments/' + this.sessionId), {
return fetch(this.baseUrl + '/api/stripe_payments/' + this.sessionId, {
method: 'PUT',
body: JSON.stringify({
submitter_slug: this.submitterSlug
Expand Down Expand Up @@ -147,7 +147,7 @@ export default {
startCheckout () {
this.isCreatingCheckout = true
fetch((this.baseUrl || '/embed').replace('/embed', '/api/stripe_payments'), {
fetch(this.baseUrl + '/api/stripe_payments', {
method: 'POST',
body: JSON.stringify({
submitter_slug: this.submitterSlug,
Expand Down

0 comments on commit 203638c

Please sign in to comment.