Comments (4)
Hey @nickjohnson , thanks for your patience while we looked into your issue, as well as proactively providing a test site and video.
We are able to reproduce the behavior on your test site, but not in our own test integration. Moreover, we have not received widespread report of this issue with GooglePay in the Drop-in.
After inspecting your site, I believe the issue might lie in this codeblock:
It looks like you are listening for a change in the active view of the Drop-In and using JQuery to reset the paymentMethodRequestable
the form to paymentMethodRequestable: false
on this line:
form.data('paymentMethodRequestable',false);
When we get a response back from Google with a tokenized payment method, we switch the payment view from googlePay
to methods
, so that block is executing even after a successful response from Google. I can suggest looking at refactoring that block to not reset the paymentMethodRequestable
to false when we get a successful response back from Google.
I hope that is useful information to help you troubleshoot your integration. Since this is likely not a bug with the Drop-In, we are going to close out this issue. If you continue running into errors when integrating with the Drop-in, please feel free to reach out to our Support team to help you with your integration -> https://developer.paypal.com/braintree/help/. Also, feel free to open up a new issue if you suspect you have run into a bug with the Drop-In.
Thanks!
from braintree-web-drop-in.
An addendum the original issue. When I choose PayPal first, which works, then go to GooglePay and select a payment option, then it works. See this demonstrated here:
https://v.usetapes.com/ywinJGB19U
from braintree-web-drop-in.
I included some event feedback in the console to aid in troubleshooting the issue.
https://demo.pigeonpay.io/plan/subscribe/hreqm?trim=1
https://v.usetapes.com/jQII18Q46d
from braintree-web-drop-in.
Thanks for pointing that out. While that was not the issue directly, it did clue me in on a path that provided a fix. I put the updateConfiguration()
method there because we need to update the price based on option changes on the page. Setting the paymentMethodRequestable
to false told our form not to allow for submitting until all required information is set. That worked correctly. But I added some conditions that prevented the updateConfiguration()
from running after picking a payment method. That resolved the issue.
from braintree-web-drop-in.
Related Issues (20)
- Financing Options HOT 1
- Full CSP support HOT 5
- Capture errors when there is an Apple Pay error. HOT 1
- updateConfiguration cannot update credit card properties HOT 3
- > "https://api-m.paypal.com" HOT 1
- hoISeoI373mTmmqZxBUwNIeIGfEB4JQH5kNWfVB6tWxeiIUkTkw0EnHdwBJWRBOy HOT 1
- [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. HOT 2
- Apple Pay svg size iPhone 15 series / macOS Sonoma HOT 1
- updated CSP configuration HOT 3
- DropUI Fails to render with ApplePay on newer iPhones HOT 3
- Apple Pay UI goes disappears in a second HOT 1
- data-collector.min.js doesn't loaded HOT 3
- Display new card input form automatically when drop-in is initialized with customerId HOT 1
- Email from Braintree re Updates to required 3D Secure data fields HOT 4
- Initial render events randomly triggered HOT 1
- AuthenticationInsight seem not supported and impossible HOT 1
- Device Data is never returned HOT 2
- threeDSecure - Always Errors HOT 1
- REACT : instance.updateConfiguration() not updating the instance when using dropinInstance as a MutableRefObject
- CardholerName prefill HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braintree-web-drop-in.