1. Generate
LinkQr payment order creation flow is a method you can choose when you want to automatically deliver a link to your customers where they can pay.
Generate LinkQr Payment
POST
{{Base Adres}}/api/paywall/linkqr/generate
apikeypublic
string
Yes
The Public Key you have obtained from the merchant panel.
apiclientpublic
string
Yes
Public Client that you have obtained from the merchant panel.
Parameters that should be sent to the service are as follows:
SalesType
int
Yes
Sales type.
1 -> Product
2 -> Service
PhotoBase64
string
Yes/No
Supported for all sales types. Required for the Product, not required for the Service
Max 4MB
ItemName
string
Yes
Product/Service name
ItemDescription
string
Yes
Product/Service description
ItemAmount
decimal
Yes
Product/Service amount
StockTrack
bool
Yes
It is determined whether there will be stock support or not.
StockCount
int
No
Stock quantity
CallbackSupport
bool
Yes
Successful payment results are POSTed as feedback to an address
CallbackAddress
string
No
Address to send feedback on successful payment results
InstallmentSupport
bool
Yes
Do you support payment installments?
NotificationSupport
bool
Yes
Send notification link to payment?
NotificationEmail
string
No
E-mail to which payment link will be notified
NotificationPhone
string
No
The phone number to which the payment link will be notified
MerchantOrderId
string
No
Order information to be included in the feedback to be sent for successful payments
MerchantTrackId
string
No
Tracking information to be included in the feedback to be sent for successful payments
An example JSON to be sent to the service is as follows:
{
"SalesType": 2,
"PhotoBase64": "",
"ItemName": "Test product",
"ItemDescription": "Test product description",
"ItemAmount": 100.50,
"CurrencyId": 1,
"StockTrack": true,
"StockCount": 10,
"CallbackSupport": true,
"CallbackAddress": "https://callback.paywall.one/method",
"InstallmentSupport": false,
"NotificationSupport": true,
"NotificationEmail": "[email protected]",
"NotificationPhone": "5554443322",
"MerchantOrderId": "UAMDIURUAE24",
"MerchantTrackId": "ADKFIAXKZ8895AA"
}
The parameters returned from the service are as follows:
ErrorCode
int
Error code. If the operation is successful, it returns '0'.
Result
bool
Returns True or False. Transaction successful request returns 'true'
Message
string
If the operation is wrong, this is the message about the error, it provides language support according to the local parameter.
Body
string
Returns the payment link under the link parameter
An example JSON:
{
"ErrorCode": 0,
"Result": true,
"Message": "",
"Body": {
"Link": "https://dev-link.itspaywall.com/?SaleId=cb6955c8-e1cf-47d2-bf4c-66f010e8c30f"
}
}
Last updated