Welcome to FindNerd. Today we are going to discuss the customer on braintree. Braintree is a company of paypal which provides different payment tools. You need to
integrate the library of braintree with your project. It is available in different programming language. We are going to share the link for php.
https://github.com/braintree/braintree_php
$result = Braintree_Customer::create([
'firstName' => 'ratnam',
'lastName' => 'verma',
'email' => 'shivank91@gmail.com',
'phone' => '8448923234',
'creditCard' => [
'paymentMethodNonce' => '252ea0c3-29d2-471f-8e9a-2c181a5cc4ef',
'options' => [
'verifyCard' => true
]
]
]);
Like above you can create customer on braintree with credit card. You can pass the user details like first name, last name, email etc and most importance is the
nonce which will be provided by iphone or android side, set the verifycard to true.
0 Comment(s)