question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot use v5/Smart Payment Buttons with popup bridge

See original GitHub issue

Description

We’re trying to setup the smart payment buttons together with the braintree PopupBridge and we’re getting an empty returnUrl back instead of the native redirectUri from reconstructReturnUrl (redirects.js). This is because if(!url) below is true (url is '').

image

This causes our popup bridge to never be called with a deep link but instead the page will just reload itself inside the “popup” (safari window).

Isn’t the usage of the smart payment buttons together with the popup bridge supported?

(Braintree checkout is not an option since we don’t control the back end, and checkout.js v4 doesn’t seem to work for us either since the callback from the popup bridge doesn’t provide the order ID back. We need it though for the authorization.)

Steps to reproduce

  1. Setup the popup-bridge-ios and load the smart payment buttons in the corresponding webview
  2. Run the application and click the PayPal button
  3. Enter credentials and checkout
  4. Observe how the page reloads the last checkout step instead of returning to the popup bridge

Affected browsers

  • Chrome
  • Safari
  • Firefox
  • Edge
  • IE
  • Chrome Mobile/Tablet
  • Safari Mobile/Tablet
  • Web View / Safari ViewController
  • Other (PopupBridge)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bluepnumecommented, Apr 24, 2020

Closing this as the fix appeared to work for https://github.com/paypal/paypal-checkout-components/issues/1293 – please let me know if you see any issues. Thanks again.

1reaction
bluepnumecommented, Apr 23, 2020

OK, just as suspected. I have a fix I can try out tomorrow. Will let you know. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implementing High Availability Clustering Multi-Processing ...
This edition applies to Version 5, Release 3, of IBM High Availability Cluster Multi-Processing. (product number 5765-F62). Note: Before using this information ...
Read more >
Untitled
#2015 Nimish recipe, Operazione meningioma al cervello, Used hunting tripod stands, ... Mil-rite, Men's basketball clothing, Nipsco bill pay phone number, ...
Read more >
Untitled
Pro bowl 2014 players pay, Vilu ambu video song, Condensador 104, ... Madachy, Requested resource is in use, Mercy home health care dubuque...
Read more >
Untitled
Vehicle history using vin, Col maiale addosso durelli, Buonanotte tesoro mio, ... 14 gauge 7 16 belly button ring, Emisora candela estereo en...
Read more >
Report of Contracting Activity - ocp - DC.gov
This PO is established for payment purposes. ... Popup 3x3 notes 18pk ... of instant hot and chilled water at the touch of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found