【发布时间】:2011-02-17 23:39:58
【问题描述】:
我从下载示例代码 https://cms.paypal.com/cms_content/US/en_US/files/developer/nvp_DoDirectPayment_php.txt
运行并获取
TIMESTAMP=2010%2d05%2d11T04%3a42%3a06Z&CORRELATIONID=ac15852d1e958&ACK=Failure&VERSION=51%2e0&BUILD=1268624&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error' (length=233)
什么是问题? api用户名? api通行证?签名还是别的什么?
此信息我填写源代码:
// Set request-specific fields.
$paymentType = urlencode('Authorization'); // or 'Sale'
$firstName = urlencode('Nguyen');
$lastName = urlencode('Quang Trung');
$creditCardType = urlencode('Visa');
$creditCardNumber = urlencode('
4111111111111111');
$expDateMonth = '04';
// Month must be padded with leading zero
$padDateMonth = urlencode(str_pad($expDateMonth, 2, '0', STR_PAD_LEFT));
$expDateYear = urlencode('2015');
$cvv2Number = urlencode('5360 ');
$address1 = urlencode('ha noi');
$address2 = urlencode('hcm');
$city = urlencode('ha noi');
$state = urlencode('ha noi state');
$zip = urlencode('84');
$country = urlencode('viet nam'); // US or other valid country code
$amount = urlencode('900');
$currencyID = urlencode('USD'); // or other currency ('GBP', 'EUR', 'JPY', 'CAD', 'AUD')
【问题讨论】:
-
呃……什么?究竟是什么问题?
-
当我得到TIMESTAMP = 2010%2d05%2d11T04%3a42%3a06Z&的correlationID = ac15852d1e958&ACK =失败&VERSION = 51%2E0&BUILD = 1268624&L_ERRORCODE0 = 10002&L_SHORTMESSAGE0 =安全%20error&L_LONGMESSAGE0 =安全%20header%图20是%20not%20valid&L_SEVERITYCODE0 =错误' (length=233) ACK=Failure 并查看代码,我认为付款失败,不知道为什么会停止。在哪里步骤?登录支付宝或交易?
标签: paypal