Skip to main content

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 NameTypeRequired(Y or N)Sign(Y or N)Parameter Description
memberidStringYYMerchant ID
orderidStringYYMerchant order number
transaction_idStringYYTransaction order number
amountStringYYOrder amount
refund_orderidStringYYRefund order number(When alert_type is "Refund", it returns)
refund_amountStringYYRefund amount
alert_datetimeStringYYWarning time
alert_contentStringYYReasons for failed refund or refund reasons
alert_typeStringYYEthoca,RDR,Chargebacks,Refund
alert_statusStringYY00: successful
11:failed(Return when the Refund fails)
signStringYNSee 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();