PayPal sandbox CheckoutNow immediately closes after opennig it

TomcatDD
Contributor
Contributor
Hi Guys,

I have integrated PayPal in my backend and get Order IDs easily. The following lines have worked recently, but not for a few days. The PayPal sandbox CheckoutNow Tab closes immediately after opennig it.

paypal.Buttons({
  createOrder: (data: any, actions: any) => {
    return myOrderID; (from Server Side)
  },
  onApprove: async (data: any, actions: any) => {
    ... 
  },
  onError: (err: any) => {
    console.log(err);
  }
  }).render(
    this.paypalElement.nativeElement
);

Please see my GIF record!

Does anyone have a tip for me?

You can test the code here: https://developer.paypal.com/demo/checkout/#/pattern/server

Thanks in advance!


checkoutnow.gif
Stackoverflow:
https://stackoverflow.com/questions/61693826/paypal-sandbox-checkoutnow-immediately-closes-after-ope...

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.