ActivateSubscriptionRequest
A payment token generated by monei.js
Components or a paymentToken
saved after a previous successful payment.
In case of the first one, you will also need to send the sessionId
used to generate the token in the first place.
7cc38b08ff471ccd313ad62b23b9f362b107560b
A unique identifier within your system that adds security to the payment process. You need to pass the same session ID as the one used on the frontend to initialize MONEI Component (if you needed to). This is required if a payment token (not permanent) was already generated in the frontend.
39603551437913
The amount to be added to the subscription's initial payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge 1.00 USD).
110
A permanent identifier that refers to the initial payment of
a sequence of payments. This value needs to be sent in the path
for RECURRING
payments.
62b23b9f3627cc38b08ff471ccd313ad
The URL the customer will be directed to after transaction
completed (successful or failed - except if failUrl
is provided).
https://example.com/checkout/complete
The URL the customer will be directed to after transaction has failed,
instead of completeUrl
(used in hosted payment page). This allows
to provide two different URLs for successful and failed payments.
https://example.com/checkout/fail
The URL the customer will be directed to if they decide to cancel payment and return to your website (used in hosted payment page).
https://example.com/checkout/cancel
A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format.
{"systemId":"12345"}
{
"paymentToken": "7cc38b08ff471ccd313ad62b23b9f362b107560b",
"sessionId": "39603551437913",
"addAmount": 110,
"sequenceId": "62b23b9f3627cc38b08ff471ccd313ad",
"completeUrl": "https://example.com/checkout/complete",
"failUrl": "https://example.com/checkout/fail",
"cancelUrl": "https://example.com/checkout/cancel",
"metadata": {
"systemId": "12345"
}
}