The checkout is a functionality that allows merchants to charge credit or debit cards of their customers.
2. How to integrate the checkout?
This service can be integrated in different ways:
- API: Using POST requests to create and pay orders with card data or card token. Visit API Integration to read the documentation.
- WEB Form: This is an option focus on web apps. Using POST request to create an order and redirect to Greenpay webform to pay the order with card data. Visit Webform integration to read de documentation.
- Checkout widget: This is an option focus on web apps. Using POST request to create an order and include the widget in HTML to pay the order with card data. Visit Widget Integration to read the documentation.
- Mobile SDK's: This is an option focus on hybrid and native mobile apps. Visit Android SDK and iOS SDK to read the documentation.
- Woocommerce Plugin: Visit Woocommerce Plugin to read the documentation.
3. What is needed to use the checkout?
Para integrar el checkout se requiere los siguiente:
- API credentials.
- Integrate some of the option described above.
- Make able a webhook, in order to get checkout response in your backend (optional).
You can find API and payment form examples in the
public repository. Also, the Widget examples are in
Codepen and you can check the api methods in
POSTMAN.
4. Checkout flow
4.1. Checkout flow through the API.