我在沙盒模式下使用PayPal pro。我已经为 api 设置了正确的 api 用户名、密码、签名。
我正在使用演示信用卡号码:"4111111111111111",CVV号码:"123",除息日期:01/2016。 但有时响应返回空白。我正在使用AngellEYE_PHPClass。响应数组如下。
数组( [错误] => 数组 ( )
[REQUESTDATA] => Array
(
[USER] => ######################
[PWD] => #################
[VERSION] => ###############
[BUTTONSOURCE] => AngellEYE_PHPClass
[SIGNATURE] => #######################
[METHOD] => CreateRecurringPaymentsProfile
[TOKEN] =>
[SUBSCRIBERNAME] => Tom Company XX
[PROFILESTARTDATE] => 2014-11-25 23:29:21
[PROFILEREFERENCE] =>
[DESC] => Subscription For business
[MAXFAILEDPAYMENTS] => 2
[AUTOBILLAMT] =>
[TRIALBILLINGPERIOD] =>
[TRIALBILLINGFREQUENCY] =>
[TRIALTOTALBILLINGCYCLES] =>
[TRIALAMT] =>
[BILLINGPERIOD] => Month
[BILLINGFREQUENCY] => 1
[TOTALBILLINGCYCLES] => 0
[AMT] => 5.00
[CURRENCYCODE] => USD
[SHIPPINGAMT] =>
[TAXAMT] =>
[INITAMT] =>
[FAILEDINITAMTACTION] =>
[CREDITCARDTYPE] => Visa
[ACCT] => ########################
[EXPDATE] => 012016
[CVV2] => 123
[STARTDATE] =>
[ISSUENUMBER] =>
[EMAIL] => #####################
[PAYERID] =>
[PAYERSTATUS] =>
[BUSINESS] =>
[SALUTATION] =>
[FIRSTNAME] => Tom Company
[MIDDLENAME] =>
[LASTNAME] => Tom Company
[SUFFIX] =>
[STREET] => Kolkata
[STREET2] =>
[CITY] => Kolkata
[STATE] => West Bengal
[COUNTRYCODE] => IN
[ZIP] => 700001
[PHONENUM] =>
[SHIPTONAME] =>
[SHIPTOSTREET] =>
[SHIPTOSTREET2] =>
[SHIPTOCITY] =>
[SHIPTOSTATE] =>
[SHIPTOZIP] =>
[SHIPTOCOUNTRY] =>
[SHIPTOPHONENUM] =>
)
[RAWREQUEST] => USER=#############&PWD=############&VERSION=##########&BUTTONSOURCE=AngellEYE_PHPClass&SIGNATURE=#####################################&METHOD=CreateRecurringPaymentsProfile&TOKEN=&SUBSCRIBERNAME=Tom+Company+XX&PROFILESTARTDATE=2014-11-25+23%3A29%3A21&PROFILEREFERENCE=&DESC=Subscription+For+business&MAXFAILEDPAYMENTS=2&AUTOBILLAMT=&TRIALBILLINGPERIOD=&TRIALBILLINGFREQUENCY=&TRIALTOTALBILLINGCYCLES=&TRIALAMT=&BILLINGPERIOD=Month&BILLINGFREQUENCY=1&TOTALBILLINGCYCLES=0&AMT=5.00&CURRENCYCODE=USD&SHIPPINGAMT=&TAXAMT=&INITAMT=&FAILEDINITAMTACTION=&CREDITCARDTYPE=Visa&ACCT=4111111111111111&EXPDATE=012016&CVV2=123&STARTDATE=&ISSUENUMBER=&EMAIL=#################&PAYERID=&PAYERSTATUS=&BUSINESS=&SALUTATION=&FIRSTNAME=Tom+Company&MIDDLENAME=&LASTNAME=Tom+Company&SUFFIX=&STREET=Kolkata&STREET2=&CITY=Kolkata&STATE=West+Bengal&COUNTRYCODE=IN&ZIP=700001&PHONENUM=&SHIPTONAME=&SHIPTOSTREET=&SHIPTOSTREET2=&SHIPTOCITY=&SHIPTOSTATE=&SHIPTOZIP=&SHIPTOCOUNTRY=&SHIPTOPHONENUM=
[RAWRESPONSE] =>
)
这背后的原因是什么?
我实际上在我的开发人员网站上遇到了同样的问题,我认为这可能是由以下原因引起的
- 防火墙
- Web 服务器上的 HTTP 身份验证
- 或者也许这一点 看这里