SDK- Refund Notice
Setting
Log in to the merchant background and fill in the Dispute webhook url in the upper right corner basic information
Return parameters
| Parameter Name | Type | Required(Y or N) | Sign(Y or N) | Parameter Description |
|---|---|---|---|---|
| memberid | String | Y | Y | Merchant ID |
| orderid | String | Y | Y | Merchant order number |
| transaction_id | String | Y | Y | Transaction order number |
| amount | String | Y | Y | Order amount |
| refund_orderid | String | Y | Y | Refund order number(When alert_type is "Refund", it returns) |
| refund_amount | String | Y | Y | Refund amount |
| alert_datetime | String | Y | Y | Warning time |
| alert_content | String | Y | Y | Reasons for failed refund or refund reasons |
| alert_type | String | Y | Y | Ethoca,RDR,Chargebacks,Refund |
| alert_status | String | Y | Y | 00: successful 11:failed(Return when the Refund fails) |
| sign | String | Y | 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.
$result = $sdk->refundNotify();