đĒRequest payment based on crypto
POST
/pay/request-pay-sdk
This endpoint is designed to initiate the payment request process within PayPangea's ecosystem. By making a POST request to this endpoint, developers can obtain the unique token necessary to proceed with a payment operation. This token is then used to authenticate and facilitate payment transactions through an iframe or a separate webpage, ensuring a seamless and secure payment flow. This endpoint serves as the first step in integrating PayPangea's payment functionality into your application, enabling you to prepare for user-initiated transactions with the required authentication token.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Body
Name | Type | Description | Required |
---|---|---|---|
amount | string | requested amount | YES |
token | string | Name of the crypto token you want to be paid in | YES |
tokenaddress | string | Address of the crypto token you want to be paid in (0x00 if native token of the chain) | YES |
chain | string | Name of the chain that will be used for transaction | YES |
title | string | Name of the request to be shown to user | OPTIONAL |
text | string | Description of the request | OPTIONAL |
successredirectURL | string | Redirection URL if payemnt was success | OPTIONAL |
failredirectURL | string | Redirection URL if payment failed | OPTIONAL |
webhookURL | string | Webhook URL for notifications | OPTIONAL |
merchantid | string | Uniques ID of payment request set my merchant | OPTIONAL |
Response
Once you obtain the token, follow the instructions on this page:
đ˛Collecting PaymentsLast updated