标题几乎是不言自明的,当我收到包含所有 shinanigan 的 ?token 并调用 GetShippingDetails 时,我只得到了应该通过的部分变量 - 但也没有错误出现;
我的“测试账户”(买家)有所有地址、姓名、电话和其他未配置的东西,但这些变量不会出现。我得到的只是$resArray["email"]
和$resArray["firstName"]
所有其他人都作为未定义的索引出现。我正在使用默认的贝宝向导文件。
有人跳过这道篱笆吗?
所以,我试过print_r($resArray)
返回这个:
数组([TOKEN] => EC-79Y444941M2394358 [CHECKOUTSTATUS] => PaymentActionNotInitiated [TIMESTAMP] => 2012-06-05T11:08:41Z [CORRELATIONID] => 1c27fb16fd35 [ACK] => 成功 [VERSION] => 64 [BUILD ] => 2975009 [EMAIL] => moshma_1337887106_per@gmail.com [PAYERID] => M5FLRP2QZLGHG [PAYERSTATUS] => 已验证 [FIRSTNAME] => Mosh [LASTNAME] => Mage [COUNTRYCODE] => US [CURRENCYCODE] => EUR [AMT] => 9.00 [ITEMAMT] => 9.00 [SHIPPINGAMT] => 0.00 [HANDLINGAMT] => 0.00 [TAXAMT] => 0.00 [INSURANCEAMT] => 0.00 [SHIPDISCAMT] => 0.00 [L_NAME0] => HAMS [L_QTY0 ] => 1 [L_TAXAMT0] => 0.00 [L_AMT0] => 9.00 [L_DESC0] => 描述 [L_ITEMWEIGHTVALUE0] => 0.00000 [L_ITEMLENGTHVALUE0] => 0.00000 [L_ITEMWIDTHVALUE0] => 0.00000 [L_ITEMHEIGHTVALUE0] =>00000 [PEALAYEREQUEST_0_CURRencyCode] => eur [paymentrequest_0_amt] => 9.00 [PEALAGEREQUEST_0_0_ITEMAMT] => 9.00 [peaysrequest_0_sshippingmat] =>> 0.00 [paysect_0_0_handlingamt] PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => false [L_PAYMENTREQUEST_0_NAME0] => HAMS [L_PAYMENTREQUEST_0_QTY0] => 1 [L_PAYMENTREQUEST_0_TAXAMT0] => 0.00 [L_PAYMENTREQUEST_0_AMT0] => 9.00 [L_PAYMENTREQUEST_0_DESC0] => descricao [L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0] => 0.00000 [PAYMENTREQUESTINFO_0_ERRORCODE] => 0)EUR [PEALDIONREQUEST_0_AMT] => 9.00 [PEALDREREQUEST_0_ITEMAMT] => 9.00 [PEALDIONREQUEST_0_SHIPPICTAMT] => 0.00 [peaysrequest_0_handlingamt] => 0.00 [paymentrequest_0_0_taxamt] L_PAYMENTREQUEST_0_NAME0] => HAMS [L_PAYMENTREQUEST_0_QTY0] => 1 [L_PAYMENTREQUEST_0_TAXAMT0] => 0.00 [L_PAYMENTREQUEST_0_AMT0] => 9.00 [L_PAYMENTREQUEST_0_DESC0] => descricao [L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0] => 0.00000 [PAYMENTREQUESTINFO_0_ERRORCODE] => 0)EUR [PEALDIONREQUEST_0_AMT] => 9.00 [PEALDREREQUEST_0_ITEMAMT] => 9.00 [PEALDIONREQUEST_0_SHIPPICTAMT] => 0.00 [peaysrequest_0_handlingamt] => 0.00 [paymentrequest_0_0_taxamt] L_PAYMENTREQUEST_0_NAME0] => HAMS [L_PAYMENTREQUEST_0_QTY0] => 1 [L_PAYMENTREQUEST_0_TAXAMT0] => 0.00 [L_PAYMENTREQUEST_0_AMT0] => 9.00 [L_PAYMENTREQUEST_0_DESC0] => descricao [L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0] => 0.00000 [PAYMENTREQUESTINFO_0_ERRORCODE] => 0)0.00 [PAYMENTREQUEST_0_HANDLINGAMT] => 0.00 [PAYMENTREQUEST_0_TAXAMT] => 0.00 [PAYMENTREQUEST_0_INSURANCEAMT] => 0.00 [PAYMENTREQUEST_0_SHIPDISCAMT] => 0.00 [PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => false [L_PAYMENTREQUEST_0_NAME0] => HAMS [L_PAYMENTREQUEST_0_QTY0] => 1 [L_PAYMENTREQUEST_0_TAXAMT0] => 0.00 [ L_PAYMENTREQUEST_0_AMT0] => 9.00 [L_PAYMENTREQUEST_0_DESC0] => descricao [L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0] => 0.00000 [PAYMENTREQUESTINFO_0_ERRORCODE] => 0 )0.00 [PAYMENTREQUEST_0_HANDLINGAMT] => 0.00 [PAYMENTREQUEST_0_TAXAMT] => 0.00 [PAYMENTREQUEST_0_INSURANCEAMT] => 0.00 [PAYMENTREQUEST_0_SHIPDISCAMT] => 0.00 [PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => false [L_PAYMENTREQUEST_0_NAME0] => HAMS [L_PAYMENTREQUEST_0_QTY0] => 1 [L_PAYMENTREQUEST_0_TAXAMT0] => 0.00 [ L_PAYMENTREQUEST_0_AMT0] => 9.00 [L_PAYMENTREQUEST_0_DESC0] => descricao [L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0] => 0.00000 [PAYMENTREQUESTINFO_0_ERRORCODE] => 0 )00 [PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => false [L_PAYMENTREQUEST_0_NAME0] => HAMS [L_PAYMENTREQUEST_0_QTY0] => 1 [L_PAYMENTREQUEST_0_TAXAMT0] => 0.00 [L_PAYMENTREQUEST_0_AMT0] => 9.00 [L_PAYMENTREQUEST_0_DESC0] => descricao [L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0] => 0.00000 [ L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0] => 0.00000 [PAYMENTREQUESTINFO_0_ERRORCODE] => 0)00 [PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => false [L_PAYMENTREQUEST_0_NAME0] => HAMS [L_PAYMENTREQUEST_0_QTY0] => 1 [L_PAYMENTREQUEST_0_TAXAMT0] => 0.00 [L_PAYMENTREQUEST_0_AMT0] => 9.00 [L_PAYMENTREQUEST_0_DESC0] => descricao [L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0] => 0.00000 [ L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0] => 0.00000 [PAYMENTREQUESTINFO_0_ERRORCODE] => 0)00000 [L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0] => 0.00000 [PAYMENTREQUESTINFO_0_ERRORCODE] => 0)00000 [L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0] => 0.00000 [L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0] => 0.00000 [PAYMENTREQUESTINFO_0_ERRORCODE] => 0)
再一次,所有未定义的都出现了:
注意:未定义索引:第 43 行 D:\Program Files\EasyPHP-5.3.9\www\YSHLM\paypal-landing.php 中的 SALUTATION
注意:未定义索引:第 45 行 D:\Program Files\EasyPHP-5.3.9\www\YSHLM\paypal-landing.php 中的 MIDDLENAME
这适用于 SUFFIX、BUSINESS、PAYMENTREQUEST_0_SHIPTONAME、PAYMENTREQUEST_0_SHIPTOSTREET、PAYMENTREQUEST_0_SHIPTOSTREET2、PAYMENTREQUEST_0_SHIPTOCITY、PAYMENTREQUEST_0_SHIPTOSTATE、PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE、PAYMENTREQUEST_0_SHIPTOPHONENUM、ADDRESSSTATUS、INVNUM。
这可能是 sandbox.paypal.com 上的配置错误吗?无论如何,我去仔细检查了,但我确实(至少)设置并保存了送货地址(商品需要去的地方,对吗?)。地址不是真实的,但我需要一个真实的地址吗?