Mach is an alternative payment method exclusive to Chile, which we offer through Flow. It is a digital payments platform that allows users to make online transactions, money transfers and purchases without needing a traditional bank account.
Integration via redirection
To integrate by redirection, the user must be present at the time of payment, which must be processed through a browser. First we must generate a payment order, indicating email.
"extra_data": {
"profile": {
"first_name": " ",
"last_name": " ",
"email": "test@gmail.com",
}
}
As service identifier, the service_uuid of the FLOW service you have activated in your Paylands Backend → Manage → Payment Services → Listing must be indicated.
Once the order is generated, the user must be redirected to the payment screen indicating the token of the order and in the query, the name of the APM:
We construct the redirection URL by replacing the token of the order returned from the previous call.
https://api.paylands.com/v1/sandbox/payment/process/{token}?apm=MACH
Once the user is redirected to this screen, they will be able to view a QR code with which, through the mobile application, they can complete the payment. When the payment is completed, you will be redirected back to the OK or KO URL, depending on the payment result.
Testing
For more information on how to test this payment method on each of your vendors, visit the FLOW documentation.
Custom fields
Optionally, within the extra_data
you can include the payment_reason
field, which allows you to indicate a description of the payment.
"extra_data": {
"payment": {
"payment_reason": "Payment description"
}
}