braintree

Braintree + Python: Configure credential at transaction level rather than module

时光怂恿深爱的人放手 提交于 2020-01-14 04:40:07
问题 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': {..

Sending an error to client as callback of HTTP request

回眸只為那壹抹淺笑 提交于 2020-01-07 03:16:04
问题 I’m trying to implement a payment system in my app by running a separate server to handle payments with braintree. What I can’t figure out is how do I send an error to my client (when the payment went wrong) to handle the result client side. How can I force my client to go in the catch instead of then based on result.success ? Or how do I get the result.success in my .then ? Actually my result object has no property containing my result.success (result.success is a boolean) Server: router

Sending an error to client as callback of HTTP request

陌路散爱 提交于 2020-01-07 03:15:09
问题 I’m trying to implement a payment system in my app by running a separate server to handle payments with braintree. What I can’t figure out is how do I send an error to my client (when the payment went wrong) to handle the result client side. How can I force my client to go in the catch instead of then based on result.success ? Or how do I get the result.success in my .then ? Actually my result object has no property containing my result.success (result.success is a boolean) Server: router

AndroidAsyncHttp Error

核能气质少年 提交于 2020-01-05 08:21:23
问题 I'm trying to implement the LoopJ AndroidAsyncHttp for a Braintree project. I downloaded the .jar file and added it as a library. I now have the following code: public class PayCharge extends Activity { AsyncHttpClient client = new AsyncHttpClient(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.paycharge); client.get("https://xxx.herokuapp.com/generateToken.php", new TextHttpResponseHandler() { @Override public void

Why would a Subscription have no Payment Method Token, and how can I map it to a Customer?

自闭症网瘾萝莉.ら 提交于 2020-01-04 05:37:41
问题 I'm trying to retrieve the customer who created a subscription via its payment_method_token , as described by Braintree developer agf. However, one of my subscriptions has no Payment Method Token. The field comes back as null from the API, and shows up as a blank space in the dashboard: The docs offer no suggestion that this field could ever be empty. What can cause this to occur, and how can I find out which customer this subscription is associated with? 回答1: Full disclosure: I work at

Change form input attribute 'name' to 'data-encrypted-name'

别等时光非礼了梦想. 提交于 2020-01-03 17:22:52
问题 This was a tricky question to title, so please read before assuming its a duplicate :). I'm using Braintree Payments on a Django site, and the payment form html needs to look like this for the credit card number: <input type="text" size="20" autocomplete="off" data-encrypted-name="number" /> mine currently looks like this: <input type="text" size="20" autocomplete="off" name="number"> Can I somehow rename name to data-encrypted-name ? Alternatively, can I hide/remove the name attribute

Braintree Drop-in UI - send form using AJAX

雨燕双飞 提交于 2020-01-02 01:23:07
问题 I'm trying to implement the Braintree Drop-in UI and I want to send the form using a custom jQuery ajax method. Previously, I used to send the (non drop-in UI) form using the jQuery serialize() method, but for the new (dynamically loaded) Dropin UI form the serialize() method doesn't seem to be working (the payment_method_nonce value is set to empty). However, sending the form through a basic html form (without ajax) seems to be working fine, so my payment_method_nonce is there, its just

Payment through Braintree merchant account

独自空忆成欢 提交于 2020-01-01 16:27:07
问题 Is there a way I can process transaction from the master merchant account instead of the customer card? I'm planning to offer redeem points so I would need this. I'm using marketplace 回答1: I work at Braintree. If you need more help, please get in touch with our support team. If you want to send money to your submerchants, there are a couple of ways you can do that. The first is to not charge them your normal service fees until the amount not charged matches the amount you want to send. This

Paypal integration with Braintree

徘徊边缘 提交于 2020-01-01 04:26:10
问题 I am trying to integrate braintree for payments in Nodejs and Javascript. I have created an account on https://sandbox.braintreegateway.com and now I am trying to integrate my braintree payment with my website using "drop in" integration, I followed all the steps given on site, with which I get a paypal button, which on click opens up a paypal pop up window in which I enter my account details, After which it asks to agree on various terms. After clicking Agree it says : "Sorry we cannot

npm UNMET PEER DEPENDENCY error, Can't install braintree

大城市里の小女人 提交于 2019-12-30 12:15:29
问题 I'm trying somethings with braintree and firebase functions. But when i run: npm install braintree My terminal says: PS C:\Users\Hugo\Desktop\The store\web2\store\functions> npm install braintree functions@ C:\Users\Hugo\Desktop\The store\web2\store\functions +-- braintree@2.4.0 `-- UNMET PEER DEPENDENCY firebase-admin@5.4.3 +-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or directory, open 'C:\Users\Hugo\Desktop\The store\web2\store\functions\node_modules\firebase-admin\node