Silent Order Post

The main objective of this document is to guide your implementation with the PagadorButton, for Pagador platform.

The PagadorButton is another way to implement the Authorization process with Pagador platform. Using the JavaScript© as a script to do this and show a button in your checkout, you only needs to set-up the next steps in your checkout.

How To

Follow below the way to implement the Silent Order Post:

Fluxo Silent Order Post


The customer finishes to checkout, and go to payment process.


a) The merchant must request a ticket (server to server) sending a POST to the following URL:{mid_loja}

For example:


--request POST ""
--header "Content-Type: application/json"
mid_loja API store identifier Guid 36 Yes


--header "Content-Type: application/json"
--header "RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    "MerchantId": "{5ed36d2f-65f2-e411-9408-000af7120b62}",
    "AccessToken": "NjBhMjY1ODktNDk3YS00NGJkLWI5YTQtYmNmNTYxYzhlNjdiLTQwMzgxMjAzMQ==",
    "Issued": "2018-07-23T11:09:32",
    "ExpiresIn": "2018-07-23T11:29:32"
MerchantId API store identifier Guid 36 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
AccessToken Access Token Text NjBhMjY1ODktNDk3YS00NGJkLWI5YTQtYmNmNTYxYzhlNjdiLTQwMzgxMjAzMQ==
Issued Date and time of the generation Text AAAA-MM-DDTHH:MM:SS
ExpiresIn Date and time of the expiration Text AAAA-MM-DDTHH:MM:SS

b) In order to use this resource, for security reasons, it will be mandatory for Braspag to require, at least a valid IP of the establishment. Otherwise the requisition will not be authorized (HTTP 401 NotAuthorized).


a) As answer the establishment will receive a json (HTTP 201 Created) having among other information the ticket (AccessToken), as for example:

Response Ticket

For matters of safety, this ticket will give permissions to the establishment to save only 1 card in the deadline already established on the answer, through the attribute Expiresln (for default 20 minutes). What happens first will invalidate this same ticket for future usage.

STEPS 4 ao 6

a) The establishment will have to download a script provided by Braspag and attach it on the checkout page. This script will allow Braspag to process all of the card information without the establishment intervention

The download may be made from the following URL:

b) The establishment will have to decorate the inputs from the form with the following classes:

c) The script provided by Braspag present three events for the establishment’s manipulation and treatment which are: onSuccess (where will be returned the PaymentToken after the card data is processed), onError (in case there is any error in the consumption of Braspag services) and onInvalid (where the result of the validation of the inputs will be returned).

For matters of safety this PaymentToken may be used for only 1 authorization on Braspag. After the token processing, it will be invalid.

Example of setup to be carried out by the establishment on the checkout page:

Pagina Checkout