Payments
You can find payment endpoints here.
List All Crypto Payments (GET
)
Method: GET
https://app.pallapay.com/api/v1/api/payments
Response
{
"data": [
{
"payment_request_id": "fd423e12ff9d4a33a14fcba6a4df54e2",
"payment_link": "https://dashboard.pallapay.com/payment/fd423e12ff9d4a33a14fcba6a4df54e2",
"currency_symbol": "AED",
"amount": "10.00000000000000",
"note": "My Note",
"payer_email_address": "[email protected]",
"payer_first_name": "John",
"payer_last_name": "Doe",
"payment_currency": "TRX",
"payment_amount": "25.00000000000000",
"receiving_amount": "10.00000000000000",
"fee_paid_by": "BUYER",
"payment_fee_amount": "2.40000000000000",
"paid_amount": "0.00000000000000",
"ref_id": "49f70172ef8e48189bb3",
"payment_status": "UNPAID"
}
],
"pagination": {
"total_count": 1,
"page_count": 1,
"page_size": 10
},
"message": "Operation was successful",
"successful": true
}
Response Body:
Name | Example Value | Description |
---|---|---|
payment_request_id | String | Unique ID of created payment |
payment_link | String | Payment link (Redirect user to this address) |
currency_symbol | String | Selected fiat currency to pay |
amount | String | Payment amount in selected currency |
note | String (Nullable) | Custom note that you pass in creation time (You will receive this in your webhook URL too) |
payer_email_address | String | Payer email address |
payer_first_name | String (Nullable) | Payer first name |
payer_last_name | String (Nullable) | Payer last name |
payment_currency | String (Nullable) | The cryptocurrency your user selected to pay with |
payment_amount | String (Nullable) | The amount of cryptocurrency that is selected |
receiving_amount | String (Nullable) | The amount of fiat currency you will receive in your account after payment fee (If payer will pay for fees then this amount is same as "amount") |
fee_paid_by | String ("BUYER" or "MERCHANT") (Nullable) | Who paid the fees on this payment (You can choose who pay for fees in dashboard -> merchants ) |
payment_fee_amount | String (Nullable) | Payment fee in selected fiat currency |
ref_id | String (Nullable) | User payment reference ID |
payment_status | String ("PAID", "UNPAID" or "PENDING") | Payment status |
Get Crypto Payments by Payment Request ID (GET
)
Method: GET
https://app.pallapay.com/api/v1/api/payments/{REQUEST_PAYMENT_ID}
Response
{
"data": {
"payment_request_id": "fd423e12ff9d4a33a14fcba6a4df54e2",
"payment_link": "https://dashboard.pallapay.com/payment/fd423e12ff9d4a33a14fcba6a4df54e2",
"currency_symbol": "AED",
"amount": "10.00000000000000",
"note": "My Note",
"payer_email_address": "[email protected]",
"payer_first_name": "John",
"payer_last_name": "Doe",
"payment_currency": "TRX",
"payment_amount": "25.00000000000000",
"receiving_amount": "10.00000000000000",
"fee_paid_by": "BUYER",
"payment_fee_amount": "2.40000000000000",
"paid_amount": "0.00000000000000",
"ref_id": "49f70172ef8e48189bb3",
"payment_status": "UNPAID"
},
"pagination": {
"total_count": 1,
"page_count": 1,
"page_size": 10
},
"message": "Operation was successful",
"successful": true
}
Create Crypto Payment Request (POST
)
Method: POST
https://app.pallapay.com/api/v1/api/payments
Request Body
{
"symbol": "AED",
"amount": "10",
"ipn_success_url": "https://yourwebsite.com/success",
"ipn_failed_url": "https://yourwebsite.com/failed",
"payer_email_address": "[email protected]",
"payer_first_name": "John",
"payer_last_name": "Doe",
"note": "My Note"
}
Request Body:
Name | Example Value | Required or Optional | Description |
---|---|---|---|
symbol | String | Required | Fiat currency symbol to pay (Options: "AED", "USD") |
amount | String | Required | Payment amount in selected fiat currency |
ipn_success_url | String | Required | The URL that we redirect the user after successful payment |
ipn_failed_url | String | Required | The URL that we redirect the user after unsuccessful payment |
payer_email_address | String | Required | Payer email address |
payer_first_name | String (Nullable) | Optional | Payer first name |
payer_last_name | String (Nullable) | Optional | Payer last name |
note | String (Nullable) | Optional | You can pass any custom note here (You will receive this in your webhook URL too) |
Response
{
"data": {
"payment_request_id": "fd423e12ff9d4a33a14fcba6a4df54e2",
"payment_link": "https://dashboard.pallapay.com/payment/fd423e12ff9d4a33a14fcba6a4df54e2",
"currency_symbol": "AED",
"amount": "10.00000000000000",
"note": "My Note",
"payer_email_address": "[email protected]",
"payer_first_name": "John",
"payer_last_name": "Doe",
"payment_currency": null,
"payment_amount": null,
"receiving_amount": null,
"fee_paid_by": null,
"payment_fee_amount": null,
"paid_amount": null,
"ref_id": null,
"payment_status": "PENDING"
},
"message": "Operation was successful",
"is_successful": true
}