Buy using a previous single payment method

Creates a subscription purchase using the saved recurrent payment method from a previous single payment for externalUserId. The product plan and original payment must belong to the signed project.

The request identifies the user, not the original transaction: it does not accept a source transactionId. Truegate generates the new transaction ID and uses the selected plan price. subscriptionPlanCountry can select a country-specific plan price. Neither subscriptionPlanCountry nor metadata is signed.

Use the First subscription payment webhook for the payment result and Subscription activated for activation.

Request signature

Sign only these fields, in order:

projectId → externalUserId → subscriptionProductPlanId

See Signing requests for the HMAC-SHA-256 algorithm and code examples.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Creates a subscription purchase using the saved recurrent payment method from a previous single payment for externalUserId. The product plan and original payment must belong to the signed project.

The request identifies the user, not the original transaction: it does not accept a source transactionId. Truegate generates the new transaction ID and uses the selected plan price. subscriptionPlanCountry can select a country-specific plan price. Neither subscriptionPlanCountry nor metadata is signed.

Use the First subscription payment webhook for the payment result and Subscription activated for activation.

Request signature

Sign only these fields, in order:

projectId → externalUserId → subscriptionProductPlanId

See Signing requests for the HMAC-SHA-256 algorithm and code examples.

Body Params

Signed JSON request

string
required

Your project identifier.

string
required

HMAC-SHA-256 signature. Sign the fields in the order documented for this endpoint.

string
required
length ≤ 255

User with a saved recurrent payment method from a previous single payment.

string
required

Product plan for the new subscription. Must belong to this project.

string

Optional country used to select the plan price. Not included in the signature.

metadata
object

Optional merchant metadata. Not included in the request signature.

Responses

Language
LoadingLoading…
Response
Choose an example:
application/json