Create nonce in php

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?

+4
source share
1 answer

Full disclosure: I work at Braintree. If you have further questions, feel free to contact support .

PCI. nonce , .

, , PCI . , , Braintree.

0

Source: https://habr.com/ru/post/1621398/


All Articles