Subscriptions Via Tokenization (API)
In this article, you will learn how to accept recurring payments (subscriptions) in Payrexx using tokenization via the API.
What is Tokenization?
Tokenization involves storing a payment method for future payments. You can learn about the benefits of tokenization and how to set it up in Payrexx in the following article:
TokenizationPayrexx offers two ways to set up subscriptions:
Payrexx-managed subscriptions: Payrexx automatically handles charges, payment reminders, and customer notifications.
Subscriptions via tokenization: Processing is managed via the API, which is explained in this article.
Who is the API method suitable for?
With the API option, you manage charges and notifications entirely yourself. This method is particularly suitable if:
Your recurring payments do not follow a fixed schedule (varying intervals or timing)
Your customers should not be bound by long-term commitments
The amount to be billed is variable (e.g., pay-per-use)
How Does It Work?
The process consists of three steps:
Token Creation: During the customer's initial interaction, a token is created via the Payrexx Gateway using the
preAuthorizationparameter instead of processing a one-time payment. Optionally, an initial charge can be triggered immediately afterward using thechargeOnAuthorizationparameter.Retrieve Transaction ID: Following authorization, you receive the corresponding transaction ID either via the Transaction Webhook or by querying the gateway via the API (status:
authorized).Trigger Charge: Using the transaction ID, you can charge custom amounts as often as needed via the endpoint for capturing pre-authorized transactions.
Key features of this method:
A custom amount can be specified for each charge.
There is no guarantee of success for an individual charge.
Once created, a token does not expire.
Technical Information
Technical information and instructions for enabling subscription payments through tokenization can be found in the relevant article in our developer documentation:
Frequently Asked Questions
Last updated
Was this helpful?