Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
319 views
in Technique[技术] by (71.8m points)

php - 通过USAePay处理令牌化交易不起作用(Processing Tokenized Transaction Through USAePay not Working)

I have a PHP application built on the CodeIgniter framework which uses the USAePay library to process credit card payments.

(我有一个基于CodeIgniter框架构建的PHP应用程序,该框架使用USAePay库处理信用卡付款。)

This has been in place for some time.

(这已经存在了一段时间。)

For PCI compliance purposes, we wanted to use the USAePay iframe to process the data using the https://help.usaepay.info/developer/client-js/ Client JS library.

(为了实现PCI合规性,我们希望使用USAePay iframe通过https://help.usaepay.info/developer/client-js/ Client JS库处理数据。)

The iframe has been integrated into our payment form and successfully passes back a token.

(iframe已集成到我们的付款表格中,并成功回传了令牌。)

However, I cannot figure out how to pass the token to the server in lieu of the credit card information in order to process the payment.

(但是,我无法弄清楚如何将令牌代替信用卡信息传递给服务器以处理付款。)

I tried setting the $cardref variable to the token, but then the server returns an error that the "Credit Card Number is Required (sale)".

(我尝试将$cardref变量设置为令牌,但是服务器返回错误,提示“信用卡号是必需的(销售)”。)

I also tried creating a variable called $paymentkey and setting that to the payment key token, but that returned the same error.

(我还尝试创建一个名为$paymentkey的变量并将其设置为付款密钥令牌,但是返回了相同的错误。)

When I tried setting the $card variable to the token with an expiration date of '0000' as seemed to be explained in the documentation, the server returned an error that the "Card Number was not between 13 and 16 digits".

(当我尝试将$card变量设置为有效期为'0000'的令牌时(如文档中所解释的那样),服务器返回错误“卡号不在13到16位之间”。)

$this->CI->fidelity_cc_lib->card = $cc_data['cc_payment_key'];
$this->CI->fidelity_cc_lib->exp = '0000';
$this->_fidelity_cc_response = $this->CI->fidelity_cc_lib->process_payment();
  ask by TemiU translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...