Announcing GA (General Availability) of our GraphQL API

{
"query": "
mutation ChargePaymentMethod ($input:ChargePaymentMethodInput!){
chargePaymentMethod(input:$input) {
transaction {
id
status
}
}
}",
"variables": {
"input": {
"paymentMethodId": "single_use_payment_method_from_the_client",
"transaction": {
"amount": "10.00"
}
}
}
}
curl \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic PUBLICKEY:PRIVATEKEY_BASE64ENCODED' \
-H 'Braintree-Version: 2019-01-01' \
-X POST https://payments.sandbox.braintree-api.com/graphql \
-d '{ "query": " mutation ChargePaymentMethod ($input:ChargePaymentMethodInput!){ chargePaymentMethod(input:$input) { transaction { id status } } }", "variables": { "input": { "paymentMethodId": "nonce_from_the_client", "transaction": { "amount": "10.00" } } } }'
{
"data": {
"chargePaymentMethod": {
"transaction": {
"id": "dHJhbnNhY3Rpb25fbWI4MTZhYmQ",
"status": "SUBMITTED_FOR_SETTLEMENT"
}
}
},
"extensions": {
"requestId": "LuSqpWyygEfOMyl6zMWO7yGAAuNwmrTYRtDgM7-muT6PgsSYglOpbg=="
}
}
  • Tokenize, vault, and verify payment methods
  • Authorize and capture transactions
  • Single-step charges
  • Refunds and reversals
  • Transaction, Refund, Verification, Customer, and Dispute search
  • Customer management
  • Transaction level fee report
  • Level 2 & 3 transaction fields
  • Enhanced ACH support
  • Payment method verification and vaulting
  • PSD2/3DS support

--

--

Staff Product Manager @Twilio-Segment — Available for mentoring: https://pocketboard.co/mentor/quyl

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Quy Le

Quy Le

Staff Product Manager @Twilio-Segment — Available for mentoring: https://pocketboard.co/mentor/quyl