3. Activate

You can activate the cards you have created.

Card - Activate

PUT {{Base Address}}/api/paywall/card/production/enable

Sending a request to the provided address above will be sufficient. You can use the 'Base Address' as you wish for both the test environment and the production environment

Important: To use the Card Activation service, you need to send the 'apikeyprivate' and 'apiclientprivate' parameters in the 'Header' field. PaymentAPI Address

The header information that needs to be sent to the service is as follows:

ParameterTypeMandatoryDescription

apikeyprivate

string

Yes

Private Key obtained from the merchant panel.

apiclientprivate

string

Yes

Private Client obtained from the member business panel.

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

ParameterTypeMandatoryDescription

CardId

int

Yes

The ID information of the card in the PayWall is returned at the time of creation.

{
    "CardId": 12
}

The response returned from the service is:

ParameterTypeDescription

Body

object

It returns null without providing details.

ErrorCode

int

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

Result

bool

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

Message

string

If the operation is erroneous, this message is provided for the specified error in accordance with the locale parameter, offering language support.

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

Last updated