Payment How does it work

Cash And Card on delivery

The most basic payment methods that exist in Ordering API, do not need to make a request, in short, they are payments without requirements because these payments are not virtual transactions.

📘

These payments do not use the API's endpoints resources.

Stripe

Stripe develops the most advanced and flexible tools for electronic commerce. The Stripe APIs help you create the best possible product for your users: subscription service, marketplace "on demand", an e-commerce establishment or a micro-financing platform. Thousands of the most innovative technology companies in the world grow faster and more efficiently thanks to the integration of Stripe.

Using stripe with Ordering API allows you to configure the connection with stripe more easily so that only parameters and API keys are needed. Other tools need to use is Stripe Libraries for their special functions as "Get token" which is used in source_id. the publishable_key Click here for more need to be configurated in the project.

ParamTypeDescription
source_idstringIn stripe is a card identifier as a token.
customerjsonIs a JSON which contains all the information of the client
user_idintegerUser identifier
amountfloatThe amount of an order
getawaystringThe paymethod selected for this one is stripe.
currencystringThe currency of the amount
descriptionstringall order details in plain text

For more information about stripe currency click here.

Stripe connect "The payment platform for platforms"

Marketplaces and platforms use Stripe Connect to accept money and issue transfers to recipients. Connect puts at your disposal the necessary components to create a payment platform compatible with practically any type of business model: on-demand services, e-commerce, collective financing or travel and events, among others.

With Ordering API the rates are set for each business in the fixed_usage_fee and percentage_usage_fee fields. Like stripe, stripe connect needs to be configured. list of resources below:

Paramtypedescription
source_idstring- Is card identifier as a token
customerjsonIs a JSON which contains all the information of the client
user_idintegerUser identifier
amountfloatThe amount of an order
getawaystringThe paymethod selected for this one is stripe_connet.
currencystringThe currency of the amount
description:stringAll order details in plain text

Stripe direct

Not all users want to register or associate a card with their account, for this, there is stripe direct, it allows to use the card once without saving it and pay directly.

To use stripe direct, the publishable key must be configurated in the business (Business Paymethods). With this configuration, you can obtain the card Get token so that the payment can be made.

source_idstringIs a token intenfier for the payment
customerjsonIs a JSON which contains all the information of the client
user_idintegerUser identifier
amountfloatThe amount of an order
getawaystringThe paymethod selected for this one is stripe_direct.
currencystringThe currency of the amount
descriptionstringAll order details in plain text

Stripe Redirect

You can enable any payment method available to you within the Dashboard. Activation is generally instantaneous and does not require additional contracts nor include a lengthy process. For a detailed listing, take a look at the available payment methods and their supported geographical regions. with stripe redirect your customer must approve the payment through a redirect (for example, to their online banking service). When creating a source for this type of payment method, the Source object contains the URL to which you should redirect your customer.

source_idstringIs a token identifier wich allow to make a payment.
customerjsonIs a JSON which contains all the information of the client
user_idintegerUser identifier
amountfloatThe amount of an order
getawaystringThe paymethod selected for this one is stripe_redirect.
currencystringThe currency of the amount
descriptionstringAll order details in plain text

Paypal Express

PayPal Express is the new and improved way to accept payments on your website directly from your frontend, including new features. First, PayPal Express uses a different integration method that intelligently presents the types of payments that are most relevant to your buyers, depending on their location. We can also update buttons, payment methods, and payment experience automatically, with no additional work for you.

Second, PayPal Checkout includes new features, such as Smart Payment Buttons and alternative payment methods, such as PayPal Credit

📘

This payment does not use the API's endpoints resources, works with the libraries directly in the frontend.