简体   繁体   English

在php中生成nonce

[英]Generate nonce in php

I m new to braintree. 我是braintree的新手。 Trying to integrate braintree in php. 试图在php中集成braintree。 Followed below step: 遵循以下步骤:

  1. Created customer. 创造了客户。

     $customerParams = Braintree_Customer::create(array( 'firstName' => $firstName, 'lastName' => $lastName, )); 
  2. Then generated clientToken 然后生成clientToken

     Braintree_ClientToken::generate(array( "customerId" => $customerParams->customer->id )); 
  3. Then with help of api generated nonce in js successfully: 然后在api的帮助下成功生成了js中的nonce:

     var client = new braintree.api.Client({clientToken: ctoken}); client.tokenizeCard({ ... ... }); 

I m stuck at part where I m trying to generate nonce in php. 我陷入了我试图在PHP中生成nonce的部分。 Can I implement nonce part in php instead of js? 我可以在php而不是js中实现nonce部分吗?

Full disclosure: I work at Braintree. 完全披露:我在Braintree工作。 If you have any further questions, feel free to contact support . 如果您有任何其他问题,请随时联系支持

Not without increasing your PCI burden . 并非没有增加您的PCI负担 Generating the nonce on the client side really is the way to go if you want to use any third-party provider. 如果您想使用任何第三方提供商,那么在客户端生成nonce确实是可行的方法。

The point of tokenization is that you don't store/process raw credit cards on your servers at any point in the process, which makes the PCI compliance process a lot easier . 标记化的关键在于,您不会在流程中的任何时刻在服务器上存储/处理原始信用卡,这使得PCI合规性流程变得更加容易 If you think you need to handle credit cards directly, I would recommend talking directly with Braintree support first. 如果您认为需要直接处理信用卡,我建议您先直接与Braintree支持人员联系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM