Skip to content

Commit

Permalink
OX6-154: Fix ref number double increment during AmzPay order
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Boulanger committed Nov 10, 2023
1 parent d47883a commit fe51cb4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion extend/application/models/fcPayOneOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,14 @@ public function fcHandleAuthorization($blReturnRedirectUrl = false, $oPayGateway
$oPayment->load($this->oxorder__oxpaymenttype->value);
$sAuthorizationType = $oPayment->oxpayments__fcpoauthmode->value;

$sRefNr = $oPORequest->getRefNr($this);
if (
$this->oxorder__oxpaymenttype->value === 'fcpoamazonpay'
&& !empty($this->_oFcpoHelper->fcpoGetSessionVariable('fcpoRefNr'))
) {
$sRefNr = $oPORequest->getRefNr(false, true);
} else {
$sRefNr = $oPORequest->getRefNr($this);
}

$aResponse = $oPORequest->sendRequestAuthorization($sAuthorizationType, $this, $this->getOrderUser(), $aDynvalue, $sRefNr);
$sMode = $oPayment->fcpoGetMode($aDynvalue);
Expand Down

0 comments on commit fe51cb4

Please sign in to comment.