Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
947 views
in Technique[技术] by (71.8m points)

payment gateway - Authenticate to Braintree's Java API from Java application (no UI)

I have a use-case in which I intend to utilize Braintree's Java API from a server-side java application. In this case there will be no customer or 3rd-paty app (i.e. merchant) - just my java application and Braintree.

Generally for this type of interaction I would expect to pass an API key to the API and be granted access, and looking at Braintree's documentation here this is possible (in the form of a client token), however it appears that to generate the client token you require a customer ID (the ID of end customer) and in my use-case there would be no customer and so no customer ID.

This leads me to believe:

  • Braintree's Java API exists to support the customer experience and Braintree's drop-in UIs
  • It is not intended to be invoked directly from another application

Is this correct? Is it possible to achieve my desired outcome with Braintree? (for example to create my own administration application to administer my customers who use Braintree?)

question from:https://stackoverflow.com/questions/65856411/authenticate-to-braintrees-java-api-from-java-application-no-ui

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...