spree-contrib/spree_braintree_vzero

Payment "source" is nil on PayPalExpress

Opened this issue · 1 comments

Hi,

Using the latest master branch, and:

gem 'spree', '~> 4.2.1'
gem 'spree_auth_devise', '~> 4.3'
gem 'spree_gateway', '~> 3.9'
gem 'spree_braintree_vzero', :github => 'spree-contrib/spree_braintree_vzero', :branch => 'master'

I am still getting this error:

Screenshot+2021-04-02+12 06 12

which points to this "catch" line:

function onFetchClientToken(clientToken) {
    setupForm();
    }).catch(function (err) {
    console.log('component error:', err);
    });


If I proceed with the payment, I get this error:

Screenshot+2021-04-02+01 09 16

Any ideas how to fix it?

Hi! Make sure that you set the PayPal express as a backend payment, then the working Pay with PayPal button will be visible at the cart page.