在php中生成nonce
我是braintree的新手。尝试在php中集成braintree。遵循以下步骤:在php中生成nonce,php,braintree,Php,Braintree,我是braintree的新手。尝试在php中集成braintree。遵循以下步骤: 创建客户 $customerParams = Braintree_Customer::create(array( 'firstName' => $firstName, 'lastName' => $lastName, )); 然后生成clientToken Braintree_Cli
$customerParams = Braintree_Customer::create(array(
'firstName' => $firstName,
'lastName' => $lastName,
));
Braintree_ClientToken::generate(array(
"customerId" => $customerParams->customer->id
));
var client = new braintree.api.Client({clientToken: ctoken});
client.tokenizeCard({
...
...
});
标记化的要点是,在过程中的任何时候,您都不会在服务器上存储/处理原始信用卡,这是非常重要的。如果您认为需要直接处理信用卡,我建议您首先直接与Braintree支持部门联系。这个问题可以回答吗?如果我们知道这会增加PCI的负担,但我们的客户端暂时无法实现客户端,那么我们该怎么办?我需要集成的软件不允许我想要集成的方法的客户端代码,这涉及到它们的标记化系统。我仍然会标记卡,但我需要做的一切服务器端。我不介意CC数据在传输过程中接触服务器,因为更大的负担是将其存储在DB中,我不打算这样做。