post
https://apisandbox.braspag.com.br/v2/sales/
Learn more about this feature in documentation.
| Environment | Method | Endpoint |
|---|---|---|
| Sandbox | post | https://apisandbox.braspag.com.br/v2/sales/ |
| Production | post | https://api.braspag.com.br/v2/sales/ |
For the Click to Pay request, send the Payment.Type parameter as “CreditCard” and the WalletType parameter as “ClickToPay”.
CAVV and card security code
- When a card is tokenized, Click to Pay returns the card CAVV. When sending a transaction with CAVV (
Wallet.Cavv), it is not mandatory to send the card security code;- When a card is not tokenized, CAVV does not exist, so it is mandatory to send the card security code (
Payment.CreditCard.SecurityCode).
The Click to Pay feature works with card data or DPAN. It is not possible to create a transaction using encrypted data.
See how to decrypt card data in the Mastercard documentation.