Questions tagged [braintree]

Braintree provides an API for accepting payments online and through mobile apps with a single integration.

Braintree is a payment platform for online and mobile businesses, offering merchants a payment gateway and merchant account. With a single integration, merchants are able to accept credit cards, debit cards, and PayPal globally, as well as Venmo and Apple Pay in the USA.

Braintree provide client libraries and integration examples in Ruby, Python, PHP, Java, .NET, and Node JS; mobile libraries for iOS and Android; and Braintree.js for in-browser card encryption.

Support resources can be found at https://support.braintreepayments.com/.

Questions tagged with should be about integrating with Braintree, using the client, mobile, and browser libraries, or other programming-related questions about Braintree's services.

1525 questions
6
votes
2 answers

How to get transaction ID in braintree sale

Is there a way to get the Transaction ID of a sale that I just made. Here is what I have so far: >>> sale=braintree.Transaction.sale({'amount': '0.05', 'customer_id': '17419473'}) >>> sale.transaction
David542
  • 104,438
  • 178
  • 489
  • 842
6
votes
2 answers

BrainTree: get all customer's payment methods

There is a way to get a list of all cards: gateway.creditCard.expiringBetween(year1900, year2100, function (err, result) {...}) and then call paymentMethod.find for each individual card. But I would like to get all payment methods associated with…
punund
  • 4,321
  • 3
  • 34
  • 45
6
votes
1 answer

Cannot create subscription using Braintree Payment Nonce

I am using a Braintree Payment Nonce to create a recurring subscription request. The below code is what I have to create a subscription. I'm using Payment Nonce which is received from Client. But the subscription request fails with a message…
ronsi
  • 519
  • 1
  • 7
  • 15
6
votes
1 answer

Use Braintree payment api in iOS app

I want to use Braintree API in my iOS app. My app is used for renting purpose i.e. requester user has to make payment to the owner of asset he wanted for rent. I have checked following links :…
Richa
  • 544
  • 1
  • 8
  • 15
6
votes
3 answers

Using pre existing library in Symfony

I am new to Symfony. I am trying to use a pre existing library that I have used for my Payment Gateway API, with Symfony (v2.3). Before using Symfony I would have a composer.json file in the root directory and I would simply use PHP require…
AnchovyLegend
  • 12,139
  • 38
  • 147
  • 231
6
votes
1 answer

What happens with Braintree.js if Javascript is turned off?

At one point I had looked at Braintree as a possible payment vendor and checked out their API. At the time, they had the "Transparent Redirect" option which solved a lot of PCI compliance issues without having the user see the payment vendor's…
Shea Daniels
  • 3,232
  • 3
  • 23
  • 27
6
votes
1 answer

Braintree API throws Braintree.Exceptions.AuthorizationException on CreateCard.Create in Sandbox

I am using ASP.NET MVC 4, the .NET Braintree Payments API, and Braintree.js. Here is a simple wrapper I have built for Braintree: public class PaymentBL { private static BraintreeGateway _braintreeGateway = new BraintreeGateway { …
J.T. Taylor
  • 4,147
  • 1
  • 23
  • 23
5
votes
2 answers

Untestable Braintree API: Should I alter the source code or individually wrap every class?

I am working with the Braintree API for .NET to take care of processing payments. Their business does a fine job of processing payments and the API wrapper works for straightforward use. However, the provided API wrapper begins to fail quickly upon…
eouw0o83hf
  • 9,438
  • 5
  • 53
  • 75
5
votes
2 answers

how to use braintree with rails and activemerchant

I have a simple rails website to which I need to add a payments gateway now. I see a railscast on integrating activemerchant with paypal but I wanted to use braintree instead. I am unable to find any tutorials that show how braintree can be…
5
votes
1 answer

CSP problem execute inline script Paypal button

Im using the braintree javascript v3 sdk and using a paypal checkout button for my shop. Code example: braintree.client.create({ authorization: 'sandbox_xxxx' }, function(err, clientInstance) { if (err) { console.log(err); …
5
votes
0 answers

How to use SEPA in braintree without asking for paypal account?

I integrated Braintree local payment methods in my project. One of the method is SEPA. While clicking on the SEPA payment button, Braintree gateway is redirecting me to the SEPA payment page. Where a user has to enter bank details. Here on this…
5
votes
2 answers

Processing Payments Via Paypal in Django-Oscar

I am trying to set up a basic e-commerce site using Django Oscar and am having difficulties. The majority of the problem has to do with the absence of examples of how to hook up meaningful (think Paypal, Stripe, Braintree) methods of payment and…
MadPhysicist
  • 5,401
  • 11
  • 42
  • 107
5
votes
1 answer

Braintree API: Cannot determine payment method for sandbox transactions

I'm currently testing Braintree API with sandbox. When I post nonce to server I get the messages from Braintree API: Amount is required. Cannot determine payment method. I found out that I can use hard coded value for nonce: paymentMethodNonce:…
Elena Rubilova
  • 367
  • 4
  • 16
5
votes
1 answer

Send money from Braintree account to customers account

I 'm stuck with a problem of transferring money from my merchant account to my customers bank account. So I just queried and googled a lot to get a appropriate solution and i just recently met with a comment that "Braintree only help to accept…
Vishnu S Babu
  • 1,570
  • 1
  • 12
  • 23
5
votes
1 answer

Braintree Unsuccessful credit card verification is not working for my code

I am trying to test braintree single payment. All works fine and the code makes a transactions which I can see in the sandbox and also from response code. But the problem is when I try to use one their 'Unsuccessful credit card numbers' it still…
Hkm Sadek
  • 2,987
  • 9
  • 43
  • 95