Creating a payment request

Payment requests are created based on an amount in pesos and contain information about the exchange rate of the order in each available currency for making the payment. To initiate a payment, it is necessary to first create the payment request.

The route for creating them receives an amount in pesos and the accepted currencies, and the backend calculates the exchange rate for each currency and stores it in the database. The SimpleFi system listens to the blockchains of all accepted currencies and updates payment requests when the corresponding payments are found.

To create a payment request:

  • The 'reference' field can be used freely to create a reference for this payment request.

  • The 'coins' attribute contains an array in the format [{'ticker': 'USDC', 'chain_id': 10}, {...}], where the ticker of each currency you want to offer as an option must be specified. All indicated currencies that do not have a configured address in the Business will be ignored. The API will respond with quotes for all tokens that have a configured address in the business.

  • The 'notification_url' field is optional. It allows you to specify a different URL than the one configured in the business to receive notifications associated with this transaction.

Obtaining the dynamic QR

It is possible to obtain a QR code linked to a specific payment request. This QR code redirects to the checkout, linking the payment with the order created in the SimpleFi system or the payment network system.

Last updated