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
Only one registered card can be added to the same recurring payment membership. When you try to add the same card again, Paywall will return a warning message.
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:
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:
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