Requirements
How it works
- The shopper selects Boleto Bancário as the payment method.
- The shopper enters their details in the payment form that you build.
- When you make the payment request, you include additional information about the items that the shopper intends to purchase.
Build your payment form
Include Boleto Bancário in the list of available payment methods. Include the following fields to collect information from your shopper in the payment form.
You can download the logo for Boleto Bancário to use in your form.
Get Boleto Bancário as an available payment method
When you make the /paymentMethods to get available payment methods, specify the following so that Boleto Bancário is included in the response.
Example request for available payment methods
Add additional parameters to your /payments request
When you make a payment, add the following additional parameters:
If you leave the
shopperStatement empty, it is populated with the following default Portuguese text:
Example payment request for Boleto Bancário
action.type: voucher, and the following:
-
pspReference: Our unique reference for the payment. -
resultCode: PresentToShopper -
action: Object containing information about the voucher:downloadUrl: Link to the downloadable Boleto in PDF format.expiresAt: The date and time when the due date expires.paymentMethodType: Indicates the issuing bank.reference: The barcode number for the payment.totalAmount: Thecurrencyandvalueof the amount due.
Present the voucher
Use the information in theaction object in the /payments response to present the voucher to the shopper.
action.downloadUrl: Link to the downloadable Boleto in PDF format.action.expiresAt: The date and time when the due date expires.action.reference: The barcode number for the payment.action.totalAmount: Thecurrencyandvalueof the amount due.
Present the payment result
Use theresultCode that you received in the /payments response to inform your shopper of the payment status. You receive payment updates and results through a webhook.
The resultCode value you can receive for Boleto Bancário is:
Test and go live
Boleto Bancário is an offline payment method. In the test environment, you can simulate a Boleto payment by promoting the pending payment to a sale.- Log in to your test Customer Area.
- Go to Transactions > Offers.
- Select the PSP reference of the pending Boleto payment.
- Select the Promote this offer to a sale button.
- Boletos that are pending or that have expired are under Transactions > Offers.
- Boletos that have been paid (including test offers that you manually promoted to sale) are under Transactions > Payments.
