2. Edit Again

During the editing process, if there are changes to the RecurringPeriodType and/or Trial information, the active payment order counting days is terminated, and a new payment order is created.

Edit Recurring Payment

PUT {{Base Adres}}/api/paywall/recurring

Important: To use the payment service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' section. PaymentAPI Address

ParameterTypeMandatoryDescription

apikeypublic

string

Yes

The Public Key obtained from the merchant panel.

apiclientpublic

string

Yes

The Public Client obtained from the merchant panel.

The parameters that need to be sent to the service are as follows:

ParameterTypeMandatoryDescription

SubscriptionMerchantCode

string

Yes

The unique tracking number provided by your side for the recurring payment.

It must be the same as whst you used during creation

SubscriptionType

int

Yes

Membership type. Currently, only 1 is supported.

You can track it from system data

CurrencyId

int

Yes

Currency

Amount

decimal

Yes

Recurring payment amount. The amount to be charged from the card each time.

CallbackUrl

string

Yes

The address where payment results will be POSTed. See. Post Body

HasTrial

bool

Yes

Is there a trial period applied to the membership?

TrialDay

int

Yes

The trial period applied to the membership in days. If the payment was created on 02/07 in a monthly cycle and there is a 10-day trial period, the first payment will be collected on 12/08."

RecurringPeriodType

int

Yes

Recurring period type

You can track it from system data

FailAttempt

int

Yes

The number of retry attempts in case of payment failure. Max: 5

FailAttemptPendingHour

int

Yes

The time zone PayWall will wait between failed payment retries.

Max: 24

Items:Type

int

Yes

The type of the sale subject to payment. You can track it from system data

Items:Name

string

Yes

The name of the sale subject to payment.

Items:Amount

decimal

Yes

The amount of the sale subject to payment.

The 'ıtems' object is an array, and the 'Amount' information of the entered items should sum up to the total amount.

Sample to be sent to the service JSON and sample codes is as follows

{
    "SubscriptionMerchantCode": "65FSDOMBNA59DA5ASGHD",
    "SubscriptionType": 1,
    "CurrencyId": 2,
    "Amount": 12,
    "CallbackUrl": "https://webhook.site/8d70cb8e-fe1b-478b-8ee3-823870549ef2",
    "HasTrial": true,
    "TrialDay": 1,
    "RecurringPeriodType": 4,
    "FailAttempt": 1,
    "FailAttemptPendingHour": 2,
    // Items parametresi için bir değişiklik yoksa oluşturma
    // anında göndediğiniz ile aynı olmalıdır
    "Items": [
        {
            "Type": 1,
            "Name": "Gold Package",
            "Amount": 12
        }
    ]
}

The parameters returned from the service are as follows:

ParameterTypeDescription

ErrorCode

int

Error code. Returns '0' if the operation is successful.

Result

bool

It returns a true or false value. If the operation is successful, it returns 'true'.

Message

string

If the operation is in error, this is the specified error message.

Body

object

No details are returned.

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": null
}

Last updated