Transaction creation service
Calling this service is mandatory in the JavaScript payment flow. In addition to the REST payment request parameters, the following field must also be sent:
Parameter | Description | Format | Mandatory |
---|---|---|---|
payment_js | Must be sent with the value true to enable the JavaScript payment flow. | < 5 A | YES |
In response, the following parameter will be additionally returned:
Parameter | Description | Format |
---|---|---|
payment | ||
pay_token | Token related to the JavaScript payment. | = 66 AN |
For more details about this call, refer to the REST Payment.
#
ExampleRequest:
To use this example, don't forget to define the variable {{url}}
with the value
esitef-homologacao.softwareexpress.com.br
Response:
#
Payment with StoreIf it's desired to store the used card, just send the followings fields:
Parameter | Description | Format | Mandatory |
---|---|---|---|
store_card | Must be sent with the value true to enable the JavaScript payment with store flow. | < 5 A | NO |
additional_data .payer .store_identification | Identification of the owner of the card to be stored. This field is mandatory if the store_card field is sent with the value true . | < 20 N | COND |
As response, the following parameter will be additionally returned:
Parameter | Description | Format |
---|---|---|
store | ||
nita | Store transaction ID. | = 65 AN |
After performing the payment, the card information will be sent to the merchant via Store Notification.