For the complete documentation index, see llms.txt. This page is also available as Markdown.

Recurring Payment

Callbacks for payments initiated via Paywall’s recurring payment service are delivered as follows:

Key
Description

Recurring payment identifier

Recurring payment type

See: Review

Paywall tracking number of the recurring payment

Tracking number provided at the time of creation

Recurring payment amount

True | False

Reason for failure when unsuccessful

The error code of the payment transaction. Carries the error code returned by the payment provider for failed transactions. Returns null when Success: true.

The description message of the payment transaction. Carries the message returned by the payment provider for failed transactions. Returns null when Success: true.

Paywall payment identifier

Number of attempts

Information on whether the attempt has ended

The Hash value used to verify that the notification was sent from Paywall. It is generated using the System Webhook Hash Key activated in the Paywall panel.

The key mentioned above may vary depending on the value of the HashKeyType parameter. A dynamic structure should be implemented.

The format type used to generate the hash value See: Hash Formats

The type of key used in generating the hash value See: Key Types

public class RecurringCallbackRequest
{
    public int SubscriptionId { get; set; }
    public int SubscriptionType { get; set; }
    public Guid SubscriptionCode { get; set; }
    public string SubscriptionMerchantCode { get; set; }
    public decimal Amount { get; set; }
    public bool Success { get; set; }
    public string FailReason { get; set; }
    public int? PaymentErrorCode { get; set; }
    public string PaymentMessage { get; set; }
    public int? PaymentId { get; set; }
    public int Attempt { get; set; }
    public bool AttemptFinished { get; set; }
    public string Hash { get; set; }
    public string HashFormat { get; set; }
    public short? HashKeyType { get; set; }
}

Last updated