Skip to content

Commit b168a11

Browse files
author
Joan He
committed
MAGETWO-90652: PayPal BrainTree order fails to checkout with 500 Error
1 parent a53347e commit b168a11

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/code/Magento/Braintree/etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
<!-- PayPal value handlers infrastructure -->
448448
<type name="Magento\Braintree\Gateway\Response\PayPal\VaultDetailsHandler">
449449
<arguments>
450-
<argument name="paymentTokenFactory" xsi:type="object">Magento\Vault\Model\AccountPaymentTokenFactory</argument>
450+
<argument name="paymentTokenFactory" xsi:type="object">Magento\Vault\Api\Data\PaymentTokenFactoryInterface</argument>
451451
</arguments>
452452
</type>
453453
<virtualType name="BraintreePayPalValueHandlerPool" type="Magento\Payment\Gateway\Config\ValueHandlerPool">

app/code/Magento/Vault/Model/PaymentTokenFactory.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ class PaymentTokenFactory implements PaymentTokenFactoryInterface
2222
*/
2323
private $tokenTypes = [];
2424

25+
/**
26+
* @var ObjectManagerInterface
27+
*/
28+
private $objectManager;
29+
2530
/**
2631
* PaymentTokenFactory constructor.
2732
* @param ObjectManagerInterface $objectManager

0 commit comments

Comments
 (0)