Wix code working in preview mode but not live

I used code to create custom payment for donations. Double checked everything.

The code is not working on the live site but works as expected in preview mode.
My site url where people can make donations should be displayed is: https://www.americadogregistry.com/don1

When the people enter amount for donation and click on proceed button , the lightbox to enter in information should open up and where they enter card details and click on pay, which works in preview mode and give success message but on live site error.

I have been through numerous posts with similar issues looking for a solution but cant figure it out.

Please help!

Make sure you sync the sandbox database with the Live database:

I did it before and I did it again just now and tried but still the same.

You should also check the database collection permissions .

Yes I did that, However could you please suggest what should be collection type.

I saved it as Private Data.

Thanks

The GinoHelp collection is not sync’ed.

Also, your payment code should be in the backend for security reasons.

As I said before, the payment code should be in the backend. You can then use suppressAuth when accessing the database. This will greatly enhance your security.

See this example for more information:

Stripe Payment Processing

Integrate the Stripe Payment processing system into a site. Three levels of user access are demonstrated: visitor, freemium (registered), and premium (paid).

I am sorry that’s under Form Submission.

What? The example demonstrates how to use backend code for secure payment processing.

Your collection permissions need to be set to Anyone so that the data can be saved. For a more secure database and more secure transactions, you will need to put your payment code in the backend.