📖
PayPangea Integration Guide
  • 👋PayPangea Integration Guide
  • Product Guides
    • đŸ“ĒGetting Started
    • â„šī¸Integration Options
  • 💰WALLET CREATION
    • â„šī¸Introduction
    • âš™ī¸API Integration
      • ☕Integration steps
      • đŸĒ™Request a wallet
  • LOGIN WITH PAYPANGEA
    • 💾SDK Integration
      • ☕Integration Steps
      • 👨‍đŸ’ģHandling Logins
      • đŸ•ĸEvent Handling
    • âš™ī¸API Integration
      • ☕Integration steps
      • 🧑‍đŸ’ģShow login page
    • đŸ§™â€â™‚ī¸Server-side verification
      • ☕Integration steps
      • đŸĒ™Request authentication
  • CRYPTO PAYMENTS
    • 💾SDK Integration
      • ☕Integration Steps
      • đŸ’ĩHandling Payments
      • đŸ•ĸEvent Handling
    • âš™ī¸API integration
      • ☕Integration steps
      • đŸ•ĩī¸Authentication
      • đŸĒ™Request payment based on crypto
      • đŸ’ĩRequest payment based on fiat
      • 💲Collecting Payments
  • WEBHOOKS
    • đŸĒWebhooks
  • Other
    • Troubleshooting
    • FAQ
Powered by GitBook
On this page
  1. CRYPTO PAYMENTS
  2. API integration

Request payment based on fiat

POST /pay/request-pay-sdk-fiat

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.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <API_KEY>

Body

Name
Type
Description
Required

amount

string

requested amount in currency

YES

token

string

Name of the crypto token you want to be paid in

YES

currency

string

3 letter fiat currency symbol (USD, EUR, INR, ...)

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

{
  "status": 1,
  "tkn": <token>
}
{
  "code": 400,
  "message": <error message>
}

Once you obtain the token, follow the instructions on this page:

PreviousRequest payment based on cryptoNextCollecting Payments

Last updated 1 year ago

âš™ī¸
đŸ’ĩ
💲Collecting Payments