Skip to main content
POST
/
payment
/
pay-with-token
cURL
curl --request POST \
  --url https://gateway.varchev.com/ipg/payment/pay-with-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'OrganizationId: <organizationid>' \
  --header 'TenantId: <tenantid>' \
  --header 'WalletId: <walletid>' \
  --data '
{
  "registrationId": "<string>",
  "merchantTransactionId": "<string>",
  "amount": 123,
  "currency": "<string>",
  "cardCvv": "<string>",
  "terminalId": "<string>",
  "destinationId": "<string>",
  "merchantRedirectUrl": "<string>",
  "orderType": "<string>"
}
'
{
  "value": {
    "id": "<string>",
    "paymentDetail": {
      "paymentId": "<string>",
      "paymentBrand": "<string>",
      "paymentMode": "<string>",
      "paymentType": "<string>",
      "registrationId": "<unknown>",
      "amount": 123,
      "currency": "<string>",
      "card": {
        "bin": "<string>",
        "last4Digits": "<string>",
        "holder": "<string>",
        "expiryMonth": "<string>",
        "expiryYear": "<string>"
      },
      "transactionStatus": "<string>",
      "merchantTransactionId": "<unknown>",
      "result": {
        "code": 123,
        "description": "<string>"
      },
      "descriptor": "<unknown>",
      "remark": "<unknown>",
      "timestamp": "<string>",
      "redirect": {
        "url": "<string>",
        "method": "<unknown>",
        "target": "<unknown>",
        "parameters": [
          {
            "name": "<string>",
            "value": "<string>"
          }
        ]
      }
    }
  },
  "isOk": true,
  "isErr": true
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

WalletId
string
required
TenantId
string
required
OrganizationId
string
required

Body

registrationId
string | null
merchantTransactionId
string | null
amount
number<double>
currency
string | null
cardCvv
string | null
terminalId
string | null
destinationId
string | null
merchantRedirectUrl
string | null
orderType
string | null

Response

Success

value
object
isOk
boolean
isErr
boolean