Example Description
In this example we created a custom payment experience for a site visitor, using the Velo Pay API.
How We Built It
Before you start working with the Wix Pay API, make sure you do the following:
Apply all necessary security precautions for working with payments in code. Specifically, make sure to always define payment information in the backend.
Set up accepted payment methods on your site. We also recommend that you understand the typical payment process before proceeding.
How It Works
We displayed a product for sale and added a payment button. When a visitor clicks the button, the BE_PayAPI.jsw backend module is called, and the Wix Pay createPayment() function creates a payment info object with a unique payment ID.
The Wix Pay startPayment() function runs in the client-side with the payment ID, opening a payment popup. The visitor enters payment information and completes the transaction.
Next Steps
Open this example in the Editor to work with the template.
Publish the site.
Learn how to work with examples in Velo.
Related Examples
Did this help?
|
Thanks for your feedback!
Collect Payments for Products in a Database Collection
Collect quick and secure payments for products in your database collection.
Intermediate
Currency Converter
Convert a specified amount of money from one currency to another
Intermediate