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
Parameter | Type | Mandatory | Description |
---|---|---|---|
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:
Parameter | Type | Mandatory | Description |
---|---|---|---|
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. |
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
The parameters returned from the service are as follows:
Parameter | Type | Description |
---|---|---|
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. |
Last updated