GithubHelp home page GithubHelp logo

Comments (4)

jplukarski avatar jplukarski commented on July 19, 2024 1

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:
gpay

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.

nickjohnson avatar nickjohnson commented on July 19, 2024

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.

nickjohnson avatar nickjohnson commented on July 19, 2024

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.

nickjohnson avatar nickjohnson commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.