Registrations API
POST/rest/register
/rest/registerProduction URL
https://api.betterpayment.de/rest/registerTest URL
https://testapi.betterpayment.de/rest/registerThe Registrations API is used to register card information for use in a future payment. The difference between this API and the Authorization API is that it does not require an amount to be blocked for a future deduction.
Registrations API returns tokenized transaction ID, which is used later on with any amount, to make an actual payment.
Registration API Parameters
Registration API parameters are identical to Payment API. Please, refer back for details there.
Registration API Response
Registration API response is identical to Payment API. Please, refer back for details there.
Use Case: Register a Card for Future Payments
- Send a
POSTrequest to/rest/registerwith the required parameters. - The response will contain a
client_action: "redirect"with a URL inaction_data. Redirect the end user to this URL. - The end user enters their card data on the hosted payment page and is redirected back to your
success_urlorerror_url. - The transaction status should now be registered. Store the returned
transaction_id— you will need it asoriginal_transaction_idin subsequent payment requests. - When you are ready to charge the card, send a request to the Payment API with
original_transaction_idset to the ID from the registration. Setrecurring=1if you intend to make recurring payments.
This API may generally used for Card payments. If you have a need to use for any other payment methods, please contact us.
Depending on the payment service provider, the system may try to make a small authorization on the credit card and immediately void it, to ensure that the card number is actually usable. Because this method involves the end user entering credit card data, it requires redirection.