Code Monkey home page Code Monkey logo

Comments (6)

braintreeps avatar braintreeps commented on July 16, 2024

foresto,

Thanks for submitting this issue. It is indeed a problem with the client library. We have queued up a task to fix this and it should be included in the next release.

from braintree_python.

cmonty avatar cmonty commented on July 16, 2024

@foresto,

We've recently released a new version of our Python Client Library that has included a fix for this behavior. Instead of returning an UnexpectedError we'll now return a NotFoundError. We recommend you test for a blank id before calling any find method or catch this error.

Please let me know if you have any questions,

Cory
Braintree Developer

from braintree_python.

foresto avatar foresto commented on July 16, 2024

Thank you. Does the fix cover Customer.find() as well? One of your staff suggested Customer.find() with a nonexistent id to test the connection to the braintree server, so it looks like we'll be using this after all.

from braintree_python.

cmonty avatar cmonty commented on July 16, 2024

Yep, any find method now ensures that id is set before attempting to communicate with Braintree.

from braintree_python.

foresto avatar foresto commented on July 16, 2024

Oh? In that case, you ought to add this to the release notes. As I said, one of your staff recommended using find() with a nonexistent id to test the connection to the server. If an id of '' no longer attempts to contact the server, you have just broken this test.

from braintree_python.

cmonty avatar cmonty commented on July 16, 2024

Sorry for the confusion! We recommend using a non-existent payment method token, not an empty string. If you use an empty string, we'll respond with NotFoundError without contacting our Gateway.

from braintree_python.

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.