# Check payment status

GET https://pay-api.paytriot.co.uk/payment/get_payment

# Parameters

# Path

Parameter Type Description
merId * string Merchant identifier given by Paytriot.
orderId * string Merchant's generated ID
nonceStr * string Random String
live_mode* boolean Switch between live mode and test mode using this parameter.

# Example

# Sample request

curl -X POST https://pay-api.paytriot.co.uk/payment/get_payment\
-H 'Content-Type: application/json' \
-d ' {
    "merId": "2020200",
    "orderId": "165177273040455532",
    "nonceStr": "evJh54zF6XBqRxuP3c2Ai8T9gUsaQH",
    "live_mode": false
}'

# Sample response

{
    "code": 1,
    "msg": "Query successful",
    "time": "1654087404",
    "data": {
        "merId": "2020200",
        "status": "0",
        "orderId": "20202001651673759977273043",
        "sysOrderId": "1654004074193269915",
        "orderAmt": "100.00",
        "cardNo": "5454168816881688",
        "style": "0",
        "desc": "phone",
        "attch": "100234",
        "nonceStr": "g4rDLOFwHblZSqvUVho8J7QMWImAR9Tk"
    }
}