Closed rossmc closed 5 years ago
Ran into the same issue. Have you added Rest API Credentials?
No, I did not know about that @vikasi95dev Where do you add them?
Not sure, I'm looking into this.
I see there is also a Braintree token setting in .env.dist#L114
Not sure what this is, on the magento admin panel I just needed to add Merchant ID, Public & Private Keys.
Maybe the token is only required on the client side? I'm not sure if it's using the Magento Panel config for this?
@vikasi95dev @rossmc
This may require some additional documentation, but the BRAINTREE_TOKEN
environment variable and the Braintree payment configuration in the Magento instance do need to match. This is pre-configured if you use the default MAGENTO_BACKEND_URL
in .env.dist
, but if you're using your own instance, you'll need to generate a BRAINTREE_TOKEN
and configure Braintree payments in the Magento backend.
@tjwiebell đź‘Ť
That was it for me.
For anyone else with the same issue...
BRAINTREE_TOKEN
property in your local .env
file.cc: @vikasi95dev
I am also facing same issue with venia storefront. Getting : Unknown or expired paymentMethodNonce error in payment log.
Describe the bug Cannot place order with braintree. It works on the Luma Storefront but not on venia storefront.
To Reproduce Steps to reproduce the behavior:
Message:
An error occurred on the server. Please try to place the order again. Magento PHP stack trace:
0 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Checkout\Model\GuestPaymentInformationManagement->savePaymentInformationAndPlaceOrder('BxeoJv3nHIwEVFo...', 'ross.mchugh@mon...', Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address\Interceptor))
1 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Checkout\Model\GuestPaymentInformationManagement\Interceptor->___callParent('savePaymentInfo...', Array)
2 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Checkout\Model\GuestPaymentInformationManagement\Interceptor->Magento\Framework\Interception{closure}('BxeoJv3nHIwEVFo...', 'ross.mchugh@mon...', Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address\Interceptor))
3 /var/www/html/generated/code/Magento/Checkout/Model/GuestPaymentInformationManagement/Interceptor.php(26): Magento\Checkout\Model\GuestPaymentInformationManagement\Interceptor->___callPlugins('savePaymentInfo...', Array, Array)
4 [internal function]: Magento\Checkout\Model\GuestPaymentInformationManagement\Interceptor->savePaymentInformationAndPlaceOrder('BxeoJv3nHIwEVFo...', 'ross.mchugh@mon...', Object(Magento\Quote\Model\Quote\Payment), Object(Magento\Quote\Model\Quote\Address\Interceptor))
5 /var/www/html/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array(Array, Array)
6 /var/www/html/vendor/magento/module-webapi/Controller/Rest.php(188): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor->process(Object(Magento\Framework\Webapi\Rest\Request\Proxy))
7 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))
8 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->___callParent('dispatch', Array)
9 /var/www/html/vendor/magento/module-company/Plugin/Webapi/Controller/RestPlugin.php(84): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
10 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Company\Plugin\Webapi\Controller\RestPlugin->aroundDispatch(Object(Magento\Webapi\Controller\Rest\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
11 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
12 /var/www/html/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins('dispatch', Array, Array)
13 /var/www/html/vendor/magento/framework/App/Http.php(135): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
14 /var/www/html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
15 /var/www/html/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
16 {main}