I am new to Braintree. Trying to integrate Braintree into php. Then follow these steps:
Created client.
$customerParams = Braintree_Customer::create(array(
'firstName' => $firstName,
'lastName' => $lastName,
));
Then the generated client Token
Braintree_ClientToken::generate(array(
"customerId" => $customerParams->customer->id
));
Then using api generated nonce in js successfully:
var client = new braintree.api.Client({clientToken: ctoken});
client.tokenizeCard({
...
...
});
I am stuck in the part where I am trying to create nonce in php. Is it possible to implement nonce function in php instead of js?
source
share