post https://apisandbox.braspag.com.br/v2/sales/
Authorize a recurring payment with a credit card
Environment | Method | Endpoint |
---|---|---|
Sandbox | post | https://apisandbox.braspag.com.br/v2/sales/ |
Production | post | https://api.braspag.com.br/v2/sales/ |
Add the RecurrentPayment
node to the Payment
node to schedule future recurrences when authorizing a transaction for the first time in the series of recurrences.
Recurring payment transaction response
The following table presents the main parameters that can be returned by the API when creating a recurring payment.
Property | Description | Type | Size |
---|---|---|---|
RecurrentPaymentId | ID that represents the recurrence, used for future queries and changes. | string | 36 |
NextRecurrency | Date when the next recurrence will occur. | string | 10 |
EndDate | Date when the recurrence ends. | string | 10 |
Interval | Interval between recurrences. | string | 10 |
AuthorizeNow | Defines whether the first recurrence will be authorized immediately or not. | boolean | *** |
Acquirer Rede
- For the Rede2 provider, the response will return the
BrandTransactionId
, which is the identifier of recurring transactions with the flags at the Rede acquirer.- For each new transaction in the sequence of recurrences, the
BrandTransactionId
must be entered.- For Visa or Elo brands, enter the
BrandTransactionId
received in the first transaction.- For Mastercard, enter the
BrandTransactionId
received on the first or previous transaction.- The value of the
BrandTransactionId
will be new with each recurring transaction response.