Search code examples
paypalpaypal-sandbox

Digital Goods for Express Checkout (dg.js) not working


It was working till yesterday and stopped working as expected. Before the code change, when we clicked a button it would trigger a pop up and it now redirects to another page. We looked into the code and found the issue

let fullpageRedirect = true;

there is a variable declaration that never sets to false

url to the code

if we change the code, to

let fullpageRedirect = false;

this is working as expected.

I forgot my Paypal password and cannot seem to reset it, I do not get the email or SMS they say they "sent" and this is required for our flow.

I do not want to host the code locally, although that works for now. It would be awesome, if the code was changed on Paypal's side.


Solution

  • Change code on top to let fullpageRedirect = false; and it works.