Hi All, can we use Braintree graphql API in suite script for auth/capture in braintree?
e
eminero
04/30/2021, 2:37 PM
Unless you have the standalone library and import it as AMD-Compatible I do not think you can use it. Try to use the N/https module instead. I know you can make requests from there, I have not done auth to any GraphQL yet
s
SS
04/30/2021, 2:57 PM
Yes i will use N/https module. Actually i am not familiar with Graphql api
s
stalbert
04/30/2021, 3:13 PM
AFIK, GraphQL doesn't specify authentication
stalbert
04/30/2021, 3:17 PM
so assuming you can do whatever braintree requires for authentication via N/https, you should be in business as GraphQL queries are intentionally simple text representation