gpt4 book ai didi

paypal - CreateRecurringPaymentsProfile 配置文件描述无效错误 : 11581

转载 作者:太空宇宙 更新时间:2023-11-03 15:51:55 25 4
gpt4 key购买 nike

我正在尝试使用 CreateRecurringPaymentsProfile 进行定期付款。

发送的数据:

&TOKEN=EC-9VR75992DL646470M
&SUBSCRIBERNAME=Mr.Subscriber
&PROFILESTARTDATE=2013-07-22T00:00:00Z
&DESC=Our+Monthly+Membership+Renewal+Plan%3A+You+payment+of+%240.1+will+be+deducted+monthly+from+your+account.+Cancel+anytime+after+6+months.+Additional+terms+and+conditions+can+be+found+in+the+Membership+Agreement+at+website.com.
&MAXFAILEDPAYMENTS=3
&AUTOBILLAMT=AddToNextBilling
&BILLINGPERIOD=Month
&BILLINGFREQUENCY=1
&AMT=0.10
&TOTALBILLINGCYCLES=
&CURRENCYCODE=USD"


["TIMESTAMP"]=> string(20) "2013-06-22T11:50:36Z"
["CORRELATIONID"]=> string(13) "9011114f8316f"
["ACK"]=> string(7) "Failure"
["VERSION"]=> string(2) "64"
["BUILD"]=> string(7) "6202528"
["L_ERRORCODE0"]=> string(5) "11581"
["L_SHORTMESSAGE0"]=> string(12) "Invalid Data"
["L_LONGMESSAGE0"]=> string(30) "Profile description is invalid"
["L_SEVERITYCODE0"]=> string(5) "Error" }

问题可能是描述太长或其他原因。也许我缺少一个字段?

我愿意:

$nvpstr = "";
$nvpstr .= "&VERSION=64.0";
$nvpstr .= "&TOKEN=".$_GET['token'];
$nvpstr .= "&PAYMENTACTION=Authorization";
$nvpstr .= "&PAYERID=".$_SESSION['PAYERID'];
$nvpstr .= "&AMT=".$_SESSION['recurringInitAmount'];
$nvpstr .= "&CURRENCYCODE=USD";
$nvpstr .= "&L_BILLINGTYPE0=RecurringPayments";
$nvpstr .= "&L_BILLINGAGREEMENTDESCRIPTION0=".$_SESSION['recurringDesc'];
$resArray = hash_call("DoExpressCheckoutPayment", $nvpstr);

在发送上述信息之前:

$nvpstr = "";
$nvpstr .= "&TOKEN=".$_GET['token'];
$nvpstr .= "&SUBSCRIBERNAME=Mr.Subscriber ";
$nvpstr .= "&PROFILESTARTDATE=".date("Y-m-d", mktime(0, 0, 0, date("m", time())+1, date("d", time()), date("Y", time())))."T00:00:00Z";
$nvpstr .= "&DESC=".$_SESSION['recurringDesc'];
$nvpstr .= "&MAXFAILEDPAYMENTS=3";
$nvpstr .= "&AUTOBILLAMT=AddToNextBilling";
$nvpstr .= "&BILLINGPERIOD=Month";
$nvpstr .= "&BILLINGFREQUENCY=1";
$nvpstr .= "&AMT=".$_SESSION['recurringInstallment'];
$nvpstr .= "&TOTALBILLINGCYCLES=".$_SESSION['recurringInstallmentCycles'];
$nvpstr .= "&CURRENCYCODE=USD";
$resArray = hash_call("CreateRecurringPaymentsProfile", $nvpstr);

最佳答案

对于收到相同错误但未达到字节限制的用户,请确保描述与计费协议(protocol)相符。

“您必须确保此字段与 SetExpressCheckout 请求中包含的相应计费协议(protocol)说明相匹配。”

https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/CreateRecurringPaymentsProfile_API_Operation_NVP/

关于paypal - CreateRecurringPaymentsProfile 配置文件描述无效错误 : 11581,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17250960/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com