POST
/
payment
/
pay-with-token
curl --request POST \
  --url https://gateway.finhub.cloud/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": "<any>",
      "amount": 123,
      "currency": "<string>",
      "card": {
        "bin": "<string>",
        "last4Digits": "<string>",
        "holder": "<string>",
        "expiryMonth": "<string>",
        "expiryYear": "<string>"
      },
      "transactionStatus": "<string>",
      "merchantTransactionId": "<any>",
      "result": {
        "code": 123,
        "description": "<string>"
      },
      "descriptor": "<any>",
      "remark": "<any>",
      "timestamp": "<string>",
      "redirect": {
        "url": "<string>",
        "method": "<any>",
        "target": "<any>",
        "parameters": [
          {
            "name": "<string>",
            "value": "<string>"
          }
        ]
      }
    }
  },
  "isOk": true,
  "isErr": true
}

Authorizations

Authorization
string
headerrequired

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
currency
string | null
cardCvv
string | null
terminalId
string | null
destinationId
string | null
merchantRedirectUrl
string | null
orderType
string | null

Response

200 - text/plain
value
object
isOk
boolean
isErr
boolean