About credit-card charges
Credit card charges are created asPAYIN_CREATED status. It goes from PAYIN_CREATED to PAYIN_AWAITING_APPROVAL when the checkout is requested.
The checkout can be done in 2 different ways:
- Payments page
- Transparent checkout
Payment page
We provide you a simple payment page where you can view the instructions and request the payment. To use the page you will need thekey field, which is returned when you create the charge. For security reasons, it is not possible to open the payment page within an iframe.
The payment page url is: https://page.goboleto.com/?hash={key}. In sandbox environment the page url is: https://page.sandbox.goboleto.com/?hash={key}.
After creating the charge, access to the credit-card checkout will be available via the URL of our payments page (in the description above).
Required information for checkout
The following additional information will be required to proceed with the checkout:- Credit card number
- Cardholder Name
- Address (that will be the payer’ credit-card billing address)
- Number of installments
Transparent checkout
The transparent checkout is a one-step process to create and pay the charge. There is some additional data to request a transparent checkout. When creating a credit-card charge, if the inputcheckout is present within the payload the charge will be created and processed.
To get all required data to process a transparent checkout our SDK must be implemented.
For further information, please read our documentation in the link below about Transparent Checkout and how to integrate our SDK: Transparent Checkout
Transparent checkout with stored credit-card
To perform the fast-checkout action, you only need to inform thecard_id parameter inside the checkout object. This parameter refers to the saved credit card ID. To recover this parameter, just consult the list of cards saved for a customer.
2 endpoints are available for listing customer information and their saved cards:
- List of customers for a given client:
/v1/payin/customers/{clientId}/cards - List of cards for a given customer:
/v1/payin/customers/{customerId}/cards
card_id parameter you MUST NOT inform token and payment_method_id parameters.
Optional inputs (Payment page)
During the checkout process, we provide the option to redirect the user to a custom success or failure page (according to the transaction status). Here follows the options for redirection:external_url.redirect_on_success: The URL where the user will be redirected after a successful credit-card checkout.external_url.redirect_on_fail: The URL where the user will be redirected after a failed credit-card checkout
external_url.checkout_image_url input.
All 3 options are optional, and the user will be redirected to our default pages after the checkout if any of the redirect urls are present as well as the checkout image.
Expiration date format
TheexpireDate field is formatted as YYYY-MM-DDTHH:SS. Ex.: 2021-12-31T23:59:59
Possible charge statuses
PAYIN_CREATED
PAYIN_CREATED
The first status when the payin is created.
PAYIN_CANCELED
PAYIN_CANCELED
Payin canceled due to expiration.
PAYIN_PAID
PAYIN_PAID
Payin was paid.
PAYIN_CREDITED
PAYIN_CREDITED
Payin was paid and the amount was credited on your wallet.
PAYIN_DROP_REQUESTED
PAYIN_DROP_REQUESTED
Payin expiration requested.
PAYIN_AWAITING_APPROVAL
PAYIN_AWAITING_APPROVAL
When the checkout is made, the charge goes from
PAYIN_CREATED to PAYIN_AWAITING_APPROVAL (intermediate status) before the confirmation or any other payment final status occurs.PAYIN_REJECTED
PAYIN_REJECTED
The payment was rejected and could not be processed.
Possible refund mode
When creating a charge, you must know how the wallet values will be debited if a refund is requested. You can choose from the 3 options below:FULL_REFUND_CLIENT
If none is informed, it will be selected by default. In this mode, the refund amount will be fully debited from the client wallet.
FULL_REFUND_RECIPIENT
In this mode, the refund amount will be fully debited from the sub-portfolio or sub-client informed in the split. In this mode, the refund will only be allowed if you have a maximum of 1 split.
REFUND_BY_SPLIT
In this mode, the refund amount will be debited proportionally as informed in the split and main wallet. In this mode, the refund will only be allowed if you have a maximum of 1 split.

