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 7568f56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 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,11 +147,12 @@ 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,
field_uuid: this.field.uuid
field_uuid: this.field.uuid,
referer: document.location.href
}),
headers: { 'Content-Type': 'application/json' }
}).then(async (resp) => {
Expand Down

0 comments on commit 7568f56

Please sign in to comment.