Receiving P2P

  1. You need to obtain an order token and payment ID:

POST <API_URL>/api/payment/create

Headers

Name
Value

Content-Type

application/json

credentials*

<API_KEY>:<API_SECRET>

Name
Type
Description

amount*

string

Operation amount

currency*

string

Currency of operation

order_id*

string

ID of transactions in your system

payment_method

string

Default value: cardp2p.

customer_first_name

string

Customer's first name. Required for "card", "upi", "openbanking", "blik_code", "skrill", "neteller", "applepay", "googlepay", payment_method

customer_last_name

string

Customer's last name. Required for "card", "upi", "openbanking", "blik_code", "skrill", "neteller", "applepay", "googlepay", payment_method

redirect_success_url*

string

Link where the user will be redirected after success

redirect_fail_url*

string

Link where our API requests will come from

pending_url*

string

Link where the user will be redirected if the order is pending

webhook_url

string

Link where our API requests will come from

Response (OK 200)

{
"status": 1,
"status_transaction": "processing",
"order_id": "string",
"amount": 22.22,
"currency": "EUR",
"description": "Payment processing",
"payment_id": 1000,
"redirect_url": "https://example.com"
}

Redirect_url example: https://redirectpays.org/p2p/23392?token=062c64d99d15281efaccdc7068e841550022ecb236f17f8f28cde02a1fe0e607

You need to extract the token and payment ID from this link. This information is required for requests.

Payment ID = 23392

Token = 062c64d99d15281efaccdc7068e841550022ecb236f17f8f28cde02a1fe0e607

  1. You need to obtain p2p details in the following format:

The body may be empty

GET<API_URL>/api/payment/{paymentID}/checkPayment?token={token}

GET<API_URL>/api/payment/{paymentID}/getP2PRequisites?token={token}

The body may be empty

Response (OK 200)

  1. Confirm money transfer

GET<API_URL>/api/payment/{paymentID}/confirmP2PPayment?token={token}

Else cancel P2P

GET<API_URL>/api/payment/{paymentID}/cancelP2PPayment?token={token}

The body may be empty

  1. Check status (Follow the Check Status page in our docs)

Last updated