function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mano smano s 

How to use Braintree payment with salesforce.

Hi
I am trying to use braintree payment system in salesforce and I want to checkout in salesforce using the braintree payment gateway, Is there any SDK for salesforce?. Can anyone pls help to integrate salesforce with braintree? 
pconpcon
You should be able to make any callouts [1] via Apex like you normally would against the Braintree API [2].  There is no specific SDK for Salesforce.

[1] https://developer.salesforce.com/page/Apex_Web_Services_and_Callouts
[2] https://developers.braintreepayments.com/
mano smano s
Thanks,
mano smano s
Hi pcon
Sorry, Braintree not supporting any web service API, so they do only server SDK(.net, Java, node.js, ruby...) file, we need to use use any one of the SDK's. Can you please help me how we can use node.js SDK or Java SDK in salesforce to connect Braintree?.
https://developers.braintreepayments.com
Thanks
pconpcon
You will either have to write your own integration layer and call that from Salesforce, or reach out to Braintree and see if they have a REST interface that you can use.  I know that the SDKs are using a REST/SOAP endpoint on the backend* so it may be that you have to reverse engineer it if you want to call it directly.

* You can see in the node example [1] that they are doing an HTTP request out.

[1] https://github.com/braintree/braintree_node/blob/d7cd91b528e8d35113717c152750146997b77fb3/src/braintree/http.coffee#L61
Chirag MehtaChirag Mehta
Was anyone able to do HTTP (REST) callouts to Brain Tree ?