SUBMIT BUTTON for FORM SUBMISSION and PAYMENT

Please is there someone who can help me … I have created a simple site with a FORM with a few fields that collect user input to write to a WIX COLLECTION. The idea is for a logged in user to SUBMIT the FORM. In terms of the workflow I need the user to make a PAYMENT before the FORM is submitted.

Everything is working … I have created everything successfully … viz. the website, form, collection, display page (where the records are shown), the payment service has been implemented and its working …

The difficulty im experiencing is as follows …

  1. The user completes the form then clicks the PAY AND SUBMIT button …

  2. The submit button has been linked to the collection and its writing the form field data to the collection correctly

  3. The payment service gets invoked … but it only stays on the screen for a few seconds then the site goes to the page that I specify on the button

So, the user journey osnt working the way i need it to work … what i need is for the payment to be completed successfully first and then immediately after that the screen must go to the page where the record is displayed

The site is www.inlovingmemory.site

You can test the payment by using the following test credit card details

CREDIT CARD NUMBER 4111 1111 1111 1111
EXPIRY DATE 25/12
CVV 123

Should i be using code for this ?

Thank you for any help provided

Merv

CREDIT CARD NUMBER 4111 1111 1111 1111
EXPIRY DATE 12/25 … sorry its this … not 25/12
CVV 123

Hello! Can you share the relevant code to your workflow? If this is not a code related question, I would recommend reaching out to customer care for support .