2. Add Card

Add a New Card to Recurring Payment Membership

Add New Card to Recurring Payment Scope

POST {{Base Adres}}/api/paywall/recurring/card

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

Parameter
Type
Compulsory
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
Compulsory
Description

SubscriptionId

int

Yes

Returned by Paywall during recurring payment membership creation.

UniqueCode

string

Yes

The UniqueCode information of the saved card where payments will be taken, returned by Paywall during card registration and listing.

Sample to be sent for service JSON and example codes Sample to be sent for service

{
    "SubscriptionId": 44,
    "UniqueCode": "FB98tsxFA4zFhbATX0uLmBIZi3P7xa+=="
}

The parameters returned from the service are as follows:

Parameter
Type
Description

ErrorCode

int

Error code. If the transaction is successful, it returns '0'.

Result

bool

It returns either true or false. If the transaction is successful, it returns 'true'.

Message

string

If the transaction is unsuccessful, this is the specified error message.

Body

object

No details returned.

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

Last updated