我正在尝试使用 Paypal Adaptive Payment 并让用户在嵌入式窗口中购买产品。问题是当我进入交易详细信息步骤(在贝宝嵌入式窗口中)时,我看到如下两行:
产品名称 $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']}";
和动作类型:
$payStr = "actionType=CREATE&cancelUrl=$cancelUrl¤cyCode=USD&returnUrl=$returnUrl&requestEnvelope.errorLanguage=en_US&receiverList.receiver(0).amount=$receiverAmount&receiverList.receiver(0).email=$receiverEmail";
任何想法?谢谢!