Braintree
Integration notes, required parameters, test details and example requests for integrating Braintree with the Revo PCI platform.
Test card details
Card Number:
4444333322221111Expiry Date:
0531CVV:
123Braintree have more test cards which can be found here.
Integration requirements
Required parameters
'SALE' is supported which will take a payment from the requested card.
'TOKEN' is supported which is for tokenising the card details for use later.
'TOKENSALE' is supported for taking a payment with an existing token.
Supported transaction types
Required parameters
Optional parameters
Braintree may support other parameters not currently integrated into the PCI platform, more information can be found here, if you would like any integrated please contact us.
Required parameters
No extra parameters are required by the TOKEN transactionType.
Required parameters
Optional parameters
Braintree may support other parameters not currently integrated into the PCI platform, more information can be found here, if you would like any integrated please contact us.
Example request
curl --location 'https://api.revopci.co.uk/' \
--header 'X-Session;' \
--header 'X-Auth;' \
--header 'Content-Type: application/json' \
--data '{
"provider": "braintree",
"mode": "test",
"method": "payment",
"parameters":
{
"transactionType": "SALE" or "TOKEN" or "TOKENSALE",
"publicKey": "",
"privateKey": ""
//SALE
"amount": "200",
"addressLine1": "123 Test Street",
"region": "Test",
"postalCode": "SANTA1",
"firstName": "Test",
"lastName": "Test",
"cardHolderName": "Test Test",
"email": "test@test.com",
"phoneNumber": "07123456789"
//TOKEN
"addressLine1": "123 Test Street",
"region": "Test",
"postalCode": "SANTA1",
"firstName": "Test",
"lastName": "Test",
"cardHolderName": "Test Test",
"email": "test@test.com",
"phoneNumber": "07123456789"
//TOKENSALE
"token": "00000000-0000-0000-0000-000000000000",
"amount": "200",
"addressLine1": "123 Test Street",
"region": "Test",
"postalCode": "SANTA1",
"firstName": "Test",
"lastName": "Test",
"cardHolderName": "Test Test",
"email": "test@test.com",
"phoneNumber": "07123456789"
}
}'