expo-braintree
v0.0.9
Published
Expo library that integrates braintree SDK.
Maintainers
Readme
expo-braintree
Expo library that integrates braintree SDK.
⚠️ Heads up! This project is currently under active development and may undergo significant changes. Features and documentation are still being finalized.
Installation
- Install package
yarn add expo-braintree- Configure plugin
app.json
{
"expo": {
"plugins": [
"expo-braintree"
]
}
}Tokenize credit card example
const result = await ExpoBraintree.tokenizeCreditCard({
authorization: "braintreeclienttoken",
number: "4111111111111111",
expirationMonth: "12",
expirationYear: "25",
cvv: "123",
postalCode: "94103",
countryCode: "US",
threeDSecureOptions: {
enabled: true,
amount: "10.00",
email: "[email protected]",
ipAddress: "127.0.0.1",
},
});{
nonce: 'e62a4aa2-b9a7-1269-7bc2-f9e2795a8fc5',
liabilityShiftPossible: true,
liabilityShifted: true,
lastTwo: '11',
deviceData: '{"correlation_id":"d7d0d03eaee7413b8cf88940597c0392"}',
}Tokenize Apple Pay example
const result = await ExpoBraintree.tokenizeApplePay({
authorization: "braintreeclienttoken",
companyName: "Test",
amount: "9.99",
});{
nonce: 'e62a4aa2-b9a7-1269-7bc2-f9e2795a8fc5',
liabilityShiftPossible: null,
liabilityShifted: null,
lastTwo: null,
deviceData: null,
}