Skip to main content

SDK - Order Search

Request parameters

Parameter NameTypeRequired(Y or N)Sign(Y or N)Parameter Description
pay_memberidStringYYMerchant ID
pay_orderidStringYYMerchant order number
transaction_idStringNNTransaction order number
pay_md5signStringYNSee MD5 signature example

Order query return parameters

Parameter NameTypeRequired(Y or N)Parameter Description
memberidStringYMerchant ID
orderidStringYMerchant order number
amountStringYSubmitted order amount
true_amountStringYThe amount actually paid by the buyer
time_endStringYPayment success time
transaction_idStringYTransaction order number
returncodeStringY"00": success
trade_stateStringYNOTPAY : unpaid
PENDING : processing
FAIL : failed
SUCCESS : Paid
REFUND : Refund
signStringNSee MD5 signature example

Demo

require_once 'vendor/autoload.php';
use Jpay\PaymentSDK\JpayPaymentSDK;
$sdk = new JpayPaymentSDK(
'your_merchant_id',
'your_secret_key',
'cashapp', // Write according to the payment method for which you want a refund. It doesn't matter if you make a mistake.
'true' // true or false, define true(dev environment)
);
//.The request parameters should be passed in according to the above requirements.
// There are mandatory and optional parameters to be passed in,
// depending on the document specifications.

$paymentData = [
'pay_orderid' => 'your pay orderid',
];

$result = $sdk->query_order($paymentData);