PayStar API Documentation
  1. Merchant EN
  • Merchant EN
    • Introduction
    • Glossary
    • Authorization key
    • Sandbox
    • Additional fields
    • Currencies
    • Bank names
    • Telecom operators
    • Callbacks
    • Error descriptions
    • Tech FAQ
    • Order History
    • Integratins
      • Stripe
      • Inwizo
      • 2Checkout
      • Adyen
      • AffiniPay
      • Alikassa
      • AlliancePay
      • Amazon Pay
      • AnyMoney
      • AstroPay
      • Aureavia
      • AurisMyChanger
      • Authorize.Net
      • Avatarix
    • Balance H2H
      GET
    • Deposit H2H - Card & P2P
      POST
    • Deposit H2H - Token
      POST
    • Deposit H2C - Card
      POST
    • Deposit status H2H - PayStar ID
      GET
    • Deposit status H2H - Merch ID
      GET
    • Payout H2H
      POST
    • Payout status H2H - PayStar ID
      GET
    • Payout status H2H - Merch ID
      GET
  1. Merchant EN

Deposit H2H - Card & P2P

POST
https://secure.PayStar.uk/api/v1/integration/deposit-order/
Last modified:2025-04-29 19:06:33
NOTE
This method can be used to create Acquiring and P2P payments, depending on the endpoint settings. As a result, there are several possible response types at the moment of payment creation:
for Acquiring, the response will contain a link for 3DS authentication;
for P2P, it will contain the payment details and a web form populated with these details. Please refer to the response examples for more information.
PCI DSS REQUIRED
If you have a valid PCI DSS certificate, you can use this method. In this case, you must collect the user's card details when creating the payment and include them in this request.
Please note that before you can start using this method, you need to provide your Account manager with your AOC (Attestation of Compliance).
If you have a PCI DSS certificate, please refer to the following method: payform.PayStar.uk/api/v1/integration/deposit-order

To make deposit payment please use follow sections:#

Create payment (current method): POST secure.PayStar.uk/api/v1/integration/deposit-order/
Get status: GET secure.PayStar.uk/api/v1/integration/deposit-order/{externalId}/status
Get status by Callback

Create H2H Deposit with the banking card - Sequence diagram#

Glossary: User | Merchant | PayStar.uk | ACS | Order | 3DS URL | Callback

CURL Example | POST Deposit order#

curl --request POST \
 --url https://secure.PayStar.uk/api/v1/integration/deposit-order\
 --header 'Authorization: Bearer YOUR TOKEN' \
 --header 'Content-Type: application/json' \
 --header 'accept: text/plain' \
 --data '{
  "amount": 100,
  "currency": "USD",
  "externalTransactionId": "MerchantPaymentId-12345",
  "successRedirectUrl": "http://merch.com/success",
  "failedRedirectUrl": "http://merch.com/failed",
  "processingRedirectUrl": "http://merch.com/processing",
  "additionalFields": [
    {
      "key": "cardNumber" 
      "value": "1234123412341234"
    },
   {
     "key": "cardHolder",
     "value": "JOHN WEAK"
   },
   {
     "key": "cardCvv",
     "value": "583"
   },
   {
     "key": "cardExpireMonth",
     "value": "05"
   },
   {
     "key": "cardExpireYear",
     "value": "26"
   },
   {
     "key": "payeerIdentifier",
     "value": "Merch-12345"
   },
   {
     "key": "email",
     "value": "Jhon.Wick@Continental-Hotel.com"
   }
 ]
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "amount": 100,
    "currency": "USD",
    "externalTransactionId": "MerchID-{{$number.int(min=1)}}",
    "callbackUrl": "https://merch.com/callbackUrl",
    "processingRedirectUrl": "https://merch.com/processing",
    "failedRedirectUrl": "https://merch.com/failed",
    "successRedirectUrl": "https://merch.com/success",
    "additionalFields": [
        {
            "key": "type",
            "value": "card"
        },
        {
            "key": "cardNumber",
            "value": "1234123412341234"
        },
        {
            "key": "cardHolder",
            "value": "JOHN WEAK"
        },
        {
            "key": "cardCvv",
            "value": "583"
        },
        {
            "key": "cardExpireMonth",
            "value": "05"
        },
        {
            "key": "cardExpireYear",
            "value": "26"
        },
        {
            "key": "payeerIdentifier",
            "value": "Merch-12345"
        },
        {
            "key": "email",
            "value": "Jhon.Wick@Continental-Hotel.com"
        }
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://secure.PayStar.uk/api/v1/integration/deposit-order/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 100,
    "currency": "USD",
    "externalTransactionId": "MerchID-{{$number.int(min=1)}}",
    "callbackUrl": "https://merch.com/callbackUrl",
    "processingRedirectUrl": "https://merch.com/processing",
    "failedRedirectUrl": "https://merch.com/failed",
    "successRedirectUrl": "https://merch.com/success",
    "additionalFields": [
        {
            "key": "type",
            "value": "card"
        },
        {
            "key": "cardNumber",
            "value": "1234123412341234"
        },
        {
            "key": "cardHolder",
            "value": "JOHN WEAK"
        },
        {
            "key": "cardCvv",
            "value": "583"
        },
        {
            "key": "cardExpireMonth",
            "value": "05"
        },
        {
            "key": "cardExpireYear",
            "value": "26"
        },
        {
            "key": "payeerIdentifier",
            "value": "Merch-12345"
        },
        {
            "key": "email",
            "value": "Jhon.Wick@Continental-Hotel.com"
        }
    ]
}'

Responses

🟢200Success - P2P
application/json
Body

Example
{
    "externalId": "9047bf77-2089-45ab-9367-0ace3069f867",
    "orderStatus": "Processing",
    "paymentDetails": {
        "card": "123456789012",
        "fio": "Alex M",
        "bank": "SuperBank",
        "formUrl": "https://payform.PayStar.uk?t=e5ff9399-2f3a-412c-858b-c9e8f84k43b2e1"
    }
}
🟢200Success - Card
🟠400Validation error
🟠400Payment already exist
🟠400Limit was reached
🟠401Unauthorized
🟠403Forbidden - Endpoint
🟠403Forbidden - IP address
🟠423Temporary error
🔴500Internal Server Error
Modified at 2025-04-29 19:06:33
Previous
Balance H2H
Next
Deposit H2H - Token
Built with