我正在使用带有包装类 (PayPalNVP) 的 Paypal API,并试图在 Paypal 上获取生成的付款页面,以在左侧显示项目描述和最终总额。现在它什么也没显示。
我正在尝试将以下变量传递给 Paypal:
$paypal->setNVP("RETURNURL", "http://www.mysite.ca/confirm.php");
$paypal->setNVP("EMAIL", "$strPaypalEmail");
$paypal->setNVP("CURRENCYCODE", "CAD");
$paypal->setNVP("AMT", number_format($fltGrandTotal, 2));
$paypal->setNVP("L_PAYMENTREQUEST_0_NAME0", "2013 Golf Registration");
$paypal->setNVP("L_DESC0", "2013 Golf Registration");
$paypal->setNVP("L_PAYMENTREQUEST_0_AMT0", number_format($fltGrandTotal, 2));
$paypal->setNVP("ITEMAMT", number_format($fltGrandTotal, 2));
$paypal->setNVP("CUSTOM", $amount);
$paypal->setNVP("INVNUM", $orderID);
我认为这会将购买的描述设置为“2013 Golf Registration”并显示最终总数......但事实并非如此。
任何意见,将不胜感激。
请求/响应如上要求:
Array
(
[TOKEN] => EC%2d8E276085HF4665733
[TIMESTAMP] => 2013%2d04%2d04T20%3a08%3a15Z
[CORRELATIONID] => 5b4a7f1b97a0a
[ACK] => Success
[VERSION] => 51%2e0
[BUILD] => 5618210
[EMAIL] => xxx@xxx.com
[PAYERID] => XXXXX
[PAYERSTATUS] => verified
[FIRSTNAME] => John
[LASTNAME] => Smith
[COUNTRYCODE] => CA
[SHIPTONAME] => John Smith
[SHIPTOSTREET] => 123 Here
[SHIPTOSTREET2] => PO BOX 164
[SHIPTOCITY] => Here
[SHIPTOSTATE] => There
[SHIPTOZIP] => K1K1K1
[SHIPTOCOUNTRYCODE] => CA
[SHIPTOCOUNTRYNAME] => Canada
[ADDRESSSTATUS] => Confirmed
[CUSTOM] => 1%2e00
[INVNUM] => 9
)
Array
(
[TOKEN] => EC%2d8E276085HF4665733
[TIMESTAMP] => 2013%2d04%2d04T20%3a08%3a18Z
[CORRELATIONID] => 33790dbf25c30
[ACK] => Success
[VERSION] => 51%2e0
[BUILD] => 5618210
[TRANSACTIONID] => 5V299088DL2402133
[TRANSACTIONTYPE] => expresscheckout
[PAYMENTTYPE] => instant
[ORDERTIME] => 2013%2d04%2d04T20%3a08%3a17Z
[AMT] => 1%2e00
[FEEAMT] => 0%2e33
[TAXAMT] => 0%2e00
[CURRENCYCODE] => CAD
[PAYMENTSTATUS] => Completed
[PENDINGREASON] => None
[REASONCODE] => None
)