Skip to content

Commit 8014506

Browse files
committed
MAGETWO-59086: [GITHUB] Credit Card capture not associated with the Authorization since upgrade to 2.1.1 #6716
1 parent c533b3d commit 8014506

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/code/Magento/Paypal/Model/Payflow/Transparent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ public function authorize(InfoInterface $payment, $amount)
186186
$this->createPaymentToken($payment, $token);
187187

188188
$payment->unsAdditionalInformation(self::CC_DETAILS);
189+
$payment->unsAdditionalInformation(self::PNREF);
189190

190191
return $this;
191192
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,13 @@ public function testAuthorize()
428428
->method('setVaultPaymentToken')
429429
->with($paymentTokenMock);
430430

431+
$this->paymentMock->expects($this->at(8))
432+
->method('unsAdditionalInformation')
433+
->with(Transparent::CC_DETAILS);
434+
$this->paymentMock->expects($this->at(9))
435+
->method('unsAdditionalInformation')
436+
->with(Transparent::PNREF);
437+
431438
$this->assertSame($this->object, $this->object->authorize($this->paymentMock, 33));
432439
}
433440
}

0 commit comments

Comments
 (0)