braintree

Can't create Braintree client token with customer ID

隐身守侯 提交于 2019-12-03 11:42:56
Copied directly from Braintree's tutorial, you can create a client token with a customer ID like this: gateway.clientToken.generate({ customerId: aCustomerId }, function (err, response) { clientToken = response.clientToken }); I declare var aCustomerId = "customer" but node.js closes with the error new TypeError('first argument must be a string or Buffer') When I try to generate a token without the customerId, everything works fine (though I never get a new client token but that's another question). EDIT: Here is the complete test code as requested: var http = require('http'), url=require('url

Why in Braintree paypal button is not visible using drop-in form in production(live) account api credentials

天涯浪子 提交于 2019-12-02 21:49:32
问题 When i'm using sandbox account for drop-in form of braintree then card fields and paypal button is visible. But on production account API credentials then paypal button is not visible. 回答1: Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support. My suspicion is that your production account is not configured to accept PayPal, which will prevent the button from even showing up in the Drop-in. Ensure that you have configured and verified a PayPal

Https callable cloud function not returning value

守給你的承諾、 提交于 2019-12-02 16:19:40
问题 I have a Flutter app and I'm trying to get a client nonce from braintree. Per the braintree documentation, I have this in my cloud function: exports.getClientNonce = functions.https.onCall(async (data, context) => { gateway.clientToken.generate({}, function (err, response) { if (err) { throw new functions.https.HttpsError('unknown', 'Error getting client nonce'); } else { console.log(`token: ${response.clientToken}`); return response.clientToken; } }); }); Then, in my Flutter app I call the

Braintree Drop In Apple Pay crashing

送分小仙女□ 提交于 2019-12-02 10:22:14
Presenting PKPaymentAuthorizationViewController always results in a total crash with pointing to my AppDelegate: Thread 1: signal SIGABRT let vc = PKPaymentAuthorizationViewController(paymentRequest: paymentRequest) as PKPaymentAuthorizationViewController? if vc != nil{ vc!.delegate = self self.present(vc!, animated: true, completion: nil) }else{ print("error") } libc++abi.dylib: terminating with uncaught exception of type NSException btw.: I am checking .canMakePayments() if it is available first. The exception message is Supported orientations has no common orientation with the application,

How to access braintree functionality from Meteor server

会有一股神秘感。 提交于 2019-12-02 04:11:42
I'm trying to use Braintree in my Meteor application, and I've made a local package of this Braintree packaging , following the instructions of this blog post on the subject , and the install went fine. Now though, I have this code: // defined in server/fixtures.js Gateway = braintree.connect({ environment: braintree.Environment.Sandbox, merchantId: "secret", publicKey: "secret", privateKey: "secret" }); and it's throwing this error: ReferenceError: braintree is not defined (etc....) I then tried throwing in this line as recommended by the Braintree documentation , but it simply throws an

“The request was aborted: Could not create SSL/TLS secure channel” error in Braintree

别说谁变了你拦得住时间么 提交于 2019-12-01 18:07:08
问题 In my local PC Braintree showing error "The request was aborted: Could not create SSL/TLS secure channel" when executing : var clientToken = gateway.ClientToken.generate(); I am using "Braintree-2.33.0.dll" and my target .net version is 4.5.1. I have enabled TLS 1.2. It was working nicely three days ago. But suddenly started showing error. Many people faced same error and most of then have changed the SecurityProtocol . I dont find any way to change that from braintree. Is there any way to

“The request was aborted: Could not create SSL/TLS secure channel” error in Braintree

∥☆過路亽.° 提交于 2019-12-01 18:02:16
In my local PC Braintree showing error "The request was aborted: Could not create SSL/TLS secure channel" when executing : var clientToken = gateway.ClientToken.generate(); I am using "Braintree-2.33.0.dll" and my target .net version is 4.5.1. I have enabled TLS 1.2. It was working nicely three days ago. But suddenly started showing error. Many people faced same error and most of then have changed the SecurityProtocol . I dont find any way to change that from braintree. Is there any way to change ServicePointManager.SecurityProtocol for braintree ? or anything else I am missing or need to do ?

npm UNMET PEER DEPENDENCY error, Can't install braintree

跟風遠走 提交于 2019-12-01 12:11:27
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_modules\tslint\package.json `-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or

Braintree custom paypal button

戏子无情 提交于 2019-12-01 10:10:01
问题 I would like to create a drop-down list for payment methods. For example: <ul> <li id="paypal">paypal</li> <li id="credit_card">credit card</li> </ul> On select credit card, it loads all fields needed for credit card payment. But now I am having trouble setting up a paypal button. I don't really want a blue button. Can I have the user click id="paypal" and launch paypal? braintree.setup(token,"custom",{ paypal:{ container:"paypal", amount: 10.00, currency: 'USD' } }) Can I make it completely

How do I test Braintree + Apple Pay on a real device?

微笑、不失礼 提交于 2019-12-01 05:06:16
I am developing an app using Apple Pay for a US Client from outside the US. I am using Braintree + Apple Pay. We support real credit cards to Passbook, but we can't verify them. I successfully generated a client token, self.braintree and tried BT's both ways of integration. BTPaymentProvider - Our abstraction on payment method creation. if(self.braintree && ![self.braintree isKindOfClass:[NSNull class]]) { self.provider = [braintree paymentProviderWithDelegate:self]; if ([self.provider canCreatePaymentMethodWithProviderType:BTPaymentProviderTypeApplePay]) { self.provider.paymentSummaryItems =