我正在尝试使用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" }
Run Code Online (Sandbox Code Playgroud)
问题可能是一个太长的描述或其他东西.也许我错过了一个领域?
我做:
$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);
Run Code Online (Sandbox Code Playgroud)
在发送以上信息之前:
$nvpstr …Run Code Online (Sandbox Code Playgroud) 我正在尝试在联系表单中添加自定义选择字段.我正在编辑/components/com_contact/models/forms/contact.xml文件,字段格式如下:
<field name="contact_subject"
type="text"
id="contact-emailmsg"
size="60"
description="COM_CONTACT_CONTACT_MESSAGE_SUBJECT_DESC"
label="COM_CONTACT_CONTACT_MESSAGE_SUBJECT_LABEL"
filter="string"
validate="contactemailsubject"
required="true"
/>
<field name="contact_message"
type="textarea"
cols="50"
rows="10"
id="contact-message"
description="COM_CONTACT_CONTACT_ENTER_MESSAGE_DESC"
label="COM_CONTACT_CONTACT_ENTER_MESSAGE_LABEL"
filter="safehtml"
validate="contactemailmessage"
required="true"
/>
<field name="contact_email_copy"
type="checkbox"
id="contact-email-copy"
description="COM_CONTACT_CONTACT_EMAIL_A_COPY_DESC"
label="COM_CONTACT_CONTACT_EMAIL_A_COPY_LABEL"
default="0"
/>
Run Code Online (Sandbox Code Playgroud)
我的问题是如何添加一个选择类型字段,因为默认只有输入,textarea和复选框,在文档中找不到任何内容