Skip to content

Commit f5066f4

Browse files
committed
ACP2E-4064: PayflowPro saved card token failed on payment
1 parent 00a4d35 commit f5066f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Paypal/Test/Unit/Model/Payflow/TransparentTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function testCaptureCorrectId(string $parentTransactionId, bool $createPa
144144
} elseif ($callCount == 1 && $args == Payflowpro::PNREF && !$createPaymentToken) {
145145
$callCount++;
146146
return '';
147-
}elseif ($callCount == 1 && $args == Payflowpro::PNREF && $createPaymentToken) {
147+
} elseif ($callCount == 1 && $args == Payflowpro::PNREF && $createPaymentToken) {
148148
$callCount++;
149149
return 'ABCD';
150150
} elseif ($callCount == 2 && $args == Payflowpro::PNREF) {
@@ -153,7 +153,7 @@ public function testCaptureCorrectId(string $parentTransactionId, bool $createPa
153153
} elseif ($callCount == 3 && $args == Payflowpro::PNREF) {
154154
$callCount++;
155155
return Payflowpro::PNREF;
156-
} else if ($args == PayPalPayflowTransparent::CC_DETAILS && $createPaymentToken) {
156+
} elseif ($args == PayPalPayflowTransparent::CC_DETAILS && $createPaymentToken) {
157157
return json_encode([]);
158158
}
159159
});

0 commit comments

Comments
 (0)