Comments (6)
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.
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.
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.
Yep, any find method now ensures that id
is set before attempting to communicate with Braintree.
from braintree_python.
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.
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)
- default parameter is not part of the PaymentMethodNonce object HOT 2
- gateway.transaction.find raises a TypeError when initialised with client_id and secret HOT 2
- Respect the requests_ca_bundle environment variable HOT 2
- Transaction using nonce fails but payment method gets vaulted with option "store_in_vault_on_success" HOT 1
- Is this library thread-safe? HOT 3
- Connection pooling HOT 3
- Module fails on import HOT 1
- TypeError: can only concatenate str (not "NoneType") to str HOT 1
- Braintree created subscription not showing in sandox account HOT 3
- Print transactions in JSON format HOT 4
- Headers provided by braintree http util contain mixture of str/bytes HOT 2
- Remove universal wheel, python 2 is unsupported HOT 2
- Use python_requires='>=3.5' HOT 2
- Paypal credit
- strings with special regex characters are causing a DeprecationWarning HOT 3
- Include updated_at field in TransactionSearch HOT 2
- Go SDK + CloudQuery source plugin? HOT 1
- Can't upgrade to Braintree 4.18.1 / Python 3.10.9 (DeprecationWarning: Use ProtectionLevel enum instead) HOT 11
- braintree python sdk support initWithAuthorization/initWIthAPIClient like iOS SDK and receive client token as argues? HOT 1
- Unittest failures on Python 3.12 HOT 1
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_python.