This tutorial will take you through installing and configuring the Braintree App.
In addition to familiarity with the Core Concepts, you’ll need the following:
Access Token
derived from a Tenant API Key
.Using the Access Token
we can now install a new Braintree App.
curl --location --request POST "https://sandbox-api.imbursepayments.com/v1/marketplace/apps/braintree_sdk/install" \
--header "Authorization: Bearer {access-token}" \
--header "Content-Type: application/json" \
The response will be response code 200 - OK
.
After installing, we can now configure the Braintree App.
The MerchantId
, PrivateKey
, PublicKey
, and MerchantAccountId
properties are all specific to the Braintree provider.
These values will need to copied from Braintree’s own portal.
The settings
property is a collection of setting
objects that determine the destination merchant account to use for a combination of currency
and countries
.
curl --location --request POST "https://sandbox-api.imbursepayments.com/v1/marketplace/installed/braintree_sdk/configure" \
--header "Authorization: Bearer {access-token}" \
--header "Content-Type: application/json" \
--data "{
\"merchantId\": \"Ov6Y2kneVSyJSpoXBVnAGw0OTDzl0Jkg\",
\"privateKey\": \"gnD1Yrrw6KLes64J5A3Eb8vs4a8Zj2sA\",
\"publicKey\": \"NU0uRxhTpvCiF8QdkxFqEgAsOqmpX7i4\",
\"settings\": [
{
\"currency\": \"EUR\",
\"countries\": [],
\"merchantAccountId\": \"euro-account\",
\"description\": \"Euro Account\"
}
]
}"
The response will be response code 200 - OK
.
{
"merchantId": "Ov6Y2kneVSyJSpoXBVnAGw0OTDzl0Jkg",
"privateKey": "gnD1Yrrw6KLes64J5A3Eb8vs4a8Zj2sA",
"publicKey": "NU0uRxhTpvCiF8QdkxFqEgAsOqmpX7i4",
"settings": [
{
"currency": "EUR",
"countries": [],
"merchantAccountId": "euro-account",
"description": "Euro Account"
}
]
}