Braintree + Python: Configure credential at transaction level rather than module
问题 I am currently using Python to integrate with Braintree. At the module-level, we configure our API keys. From the doc: import braintree braintree.Configuration.configure(...) def my_transaction(): braintree.Transaction.sale(...) How can I configure braintree at the method level? That is, if I wanted to use a different credential for each transaction, how could I do so without updating a global config? Eg: import braintree def my_transaction(): braintree.Transaction.sale({ 'configuration': {..