我正在尝试使用Paypal自适应付款,让用户在嵌入式窗口中购买产品。问题是当我进入交易细节步骤(在paypal嵌入式窗口内)时,我看到两行如下:
productname $ x.xx
(在这里为空)$ 1.00
这就是我构建setPaymentOptions的方式:
$optStr = "requestEnvelope.errorLanguage=en_US";
$optStr .= "&receiverOptions[0].receiver.email=$receiverEmail";
$optStr .= "&receiverOptions[0].invoiceData.item[0].name={$data['item_name']}";
$optStr .= "&receiverOptions[0].invoiceData.item[0].price=$itemPrice";
$optStr .= "&receiverOptions[0].invoiceData.item[0].itemCount=1";
$optStr .= "&receiverOptions[0].invoiceData.item[0].itemPrice=$itemPrice";
$optStr .= "&receiverOptions[0].invoiceData.totalShipping={$data['item_shipping_fee']}";
$optStr .= "&senderOptions.requireShippingAddressSelection=true";
$optStr .= "&payKey={$data['paykey']}";
and actionType:
$payStr = "actionType=CREATE&cancelUrl=$cancelUrl¤cyCode=USD&returnUrl=$returnUrl&requestEnvelope.errorLanguage=en_US&receiverList.receiver(0).amount=$receiverAmount&receiverList.receiver(0).email=$receiverEmail";
任何想法?谢谢!