SDK - Refund 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 |
| refund_orderid | String | N | N | Refund order number |
| pay_md5sign | String | Y | N | See MD5 signature example |
Order Refund Search return parametersβ
| Parameter Name | Type | Required(Y or N) | Parameter Description |
|---|---|---|---|
| memberid | String | Y | Merchant ID |
| transaction_id | String | Y | Transaction order number |
| orderid | String | Y | Merchant order number |
| currency | String | Y | Order currency |
| amount | String | Y | The total amount of orders |
| refund_orderid | String | Y | Refund order number |
| refund_amount | String | Y | Order refund amount (supports partial refund) |
| refund_reason | String | Y | Reason for order refund |
| refund_status | String | Y | "1":REFUNDED "2":REQUEST FOR REFUND "3":REFUNDED FAILED |
| refund_message | String | Y | |
| sign | String | N | sign |
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_refund($paymentData);