2. Add Card

Add a new card to the recurring payment membership

Add a New Card to the Recurring Payment Scope

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

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

PaymentAPI Address

A registered card can only be added to the same recurring payment membership once. If you try to add the same card again, PayWall will return a warning message.

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:

ParameterTypeMandatoryMandatory

SubscriptionId

int

Yes

Returned by PayWall during the creation of a recurring payment membership.

UniqueCode

string

Yes

The UniqueCode information of the stored card where payments will be collected is returned by PayWall in response during card registration and listing.

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

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

The parameters returned from the service are as follows:

ParameterTypeMandatory

ErrorCode

int

Error code. It returns a value of '0' if the operation is successful.

Result

bool

It returns a 'true' value if the operation is successful, and 'false' if it is not.

Message

string

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

Body

object

No details are provided.

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

Last updated