Commit 0d9f21d4 authored by mattwire's avatar mattwire
Browse files

Separate trxn_id and order_reference params and prefer trxn_id in return values from doPayment()

parent dade401d
......@@ -615,7 +615,8 @@ trait CRM_Core_Payment_MJWTrait {
$returnParams = [
'payment_status_id' => $propertyBag->getCustomProperty('payment_status_id'),
'payment_status' => $propertyBag->getCustomProperty('payment_status'),
'trxn_id' => $this->getPaymentProcessorOrderID(),
'trxn_id' => $this->getPaymentProcessorTrxnID() ?? $this->getPaymentProcessorOrderID(),
'order_reference' => $this->getPaymentProcessorOrderID() ?? NULL,
];
if ($propertyBag->has('feeAmount')) {
$returnParams['fee_amount'] = $propertyBag->getFeeAmount();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment