SDK - Order Search
Request parameters
| Parameter Name | Type | Required(Y or N) | Sign(Y or N) | Parameter Description |
|---|---|---|---|---|
| pay_memberid | String | Y | Y | Merchant ID |
| pay_orderid | String | Y | Y | Merchant order number |
| transaction_id | String | N | N | Transaction order number |
| pay_md5sign | String | Y | N | See MD5 signature example |
Order query return parameters
| Parameter Name | Type | Required(Y or N) | Parameter Description |
|---|---|---|---|
| memberid | String | Y | Merchant ID |
| orderid | String | Y | Merchant order number |
| amount | String | Y | Submitted order amount |
| true_amount | String | Y | The amount actually paid by the buyer |
| time_end | String | Y | Payment success time |
| transaction_id | String | Y | Transaction order number |
| returncode | String | Y | "00": success |
| trade_state | String | Y | NOTPAY : unpaid PENDING : processing FAIL : failed SUCCESS : Paid REFUND : Refund |
| sign | String | N | See 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);