braintree

Braintree SDK SSLCertificateError on AppEngine local dev server

断了今生、忘了曾经 提交于 2019-12-10 17:17:10
问题 The use of Braintree SDK under my local dev_appserver.py is returning following error on braintree.ClientToken.generate() : SSLError: SSLCertificateError: Invalid and/or missing SSL certificate for URL: https://api.sandbox.braintreegateway.com:443/merchants/<merchant_id>/client_token I am using the requests_toolbelt at the start of my server: # Make requests work in GAE import requests from requests_toolbelt.adapters import appengine appengine.monkeypatch() Explicitly excluding SSL Validation

Braintree client token expiration

泪湿孤枕 提交于 2019-12-10 15:57:21
问题 In Braintree, When I generate a client token with a $customerId , how reliable is it to save that client token to database and re-use it later on? I always have a user corresponding to a $customerId and it would greatly reduce the number of calls to Braintree if I could re-use the token. Does the token ever expire? There is no mention of that in the official docs. Thanks a lot! 回答1: Full disclosure: I work as a developer for Braintree The client token is not intended to be reused and will be

How to access 'this' inside a callback function in Typescript? [duplicate]

落爺英雄遲暮 提交于 2019-12-10 13:27:25
问题 This question already has answers here : How to access the correct `this` inside a callback? (10 answers) Closed 3 years ago . I am trying to set a variable declared at the beginning of the class (a boolean) to true once a callback is called, but I keep getting a TypeScript erorr. Here is the error: TypeError: Cannot set property 'nonReceived' of undefined Here is my code: finalizeToken(){ braintree.setup(JSON.parse(this.finalToken), 'dropin', { container: 'dropin-container', defaultFirst:

Trying to integrate braintree-web into Angular2

Deadly 提交于 2019-12-10 12:42:30
问题 I am trying to use the Braintree SDK (braintree-web) in my Angular2 app. I'd really appreciate any pointers on how to get this working. I think it is because I am not importing the braintree-web module, but I can't figure out how to to that either. I can find any exports in the whole module. Here is where I am: I've imported the braintree-web library and a typings file I found. ng install --save braintree-web npm install @types/braintree-web@3.0.1 I tried to hack the JS example Braintree

How to get the complete code for braintree in codename one

丶灬走出姿态 提交于 2019-12-08 05:22:47
问题 Pls is the code below is enough to handle braintree for payment? Purchase.startOrder(new Purchase.Callback() { public String fetchToken() { return ""; } public void onPurchaseSuccess(String nonce) { } public void onPurchaseFail(String errorMessage) { } public void onPurchaseCancel() { } }); For the sample test I return the token provided in braintree websites like this Purchase.startOrder(new Purchase.Callback() { public String fetchToken() { return

Issue on installing yii2-braintree via composer

情到浓时终转凉″ 提交于 2019-12-08 01:57:15
问题 I've installed the Braintree component via composer successfully, and now I wish to install, also using composer, the yii2-braintree. I inserted, just like it's recommended, the "bryglen/yii2-braintree": "*" line in the require section of my composer.json : "require": { "php": ">=5.4.0", "yiisoft/yii2": "*", "yiisoft/yii2-bootstrap": "*", "yiisoft/yii2-swiftmailer": "*", "braintree/braintree_php": "2.37.0", "bryglen/yii2-braintree": "*" }, After that, I executed composer update and the result

How to implement a payment app with Braintree in iOS

浪尽此生 提交于 2019-12-08 01:36:12
问题 My issue is this: I have created an app that is supposed to accept Credit/Debit cards. And Im using Braintree 4 SDK in iOS with swift using a cocoa pod. I can present the drop in just fine but what it does is that just ask for a cc number and then disappears, why? Because I use the code in the quick-start guide and it's supposed to do that. But it doesn't say anything about when to call the nonce function or show the amount or anything! With SDK 3 is a view controller where I can put the

Customizing Braintree Drop-in UI in web site

我与影子孤独终老i 提交于 2019-12-07 22:19:39
问题 I am testing a Braintree payment integration in a website. Everything is working fine using following php files. My only issue is that I need the Drop-in UI in spanish, and I don't know where to change it. Now it is using english as default language. This is the main.php part: <!-- braintree --> <script src="https://js.braintreegateway.com/js/braintree-2.31.0.min.js"></script> <script> $.ajax({ url: "token.php", type: "get", dataType: "json", success: function (data) { braintree.setup(data,

How to test a Braintree transaction refund?

痴心易碎 提交于 2019-12-07 14:39:47
问题 I'm trying to run tests on Braintree transaction refunding, but I'm running into a problem. Braintree's API only allows you to issue refunds for transactions that have settled. However, transactions created in the sandbox environment only "settle" once every 24 hours. So, when I try to refund them in the test suite, the refunds are always rejected because the original transaction is "submitted_for_settlement" and not "settled". Any way around this? 回答1: I work at Braintree. If you have more

Recurring payments with arbitrary amounts and at arbitrary times?

萝らか妹 提交于 2019-12-07 12:19:25
问题 We'd like to find a payment provider that lets us do something similar to Hailo, ie: Users sign up and give us their credit card details/authorise us to charge their account. They only need to do this once . In Hailo's case, users might take a cab journey at any time and be billed any amount (within reason). In our case, users might need a job done at any time, again with an invoice for an arbitrary amount. So ideally we'd be able to charge users accounts at any time, for any amount, without