首页 文章

无需创建帐户即可在PayPal上付款

提问于
浏览
0

我正在使用paypal的沙箱来测试我正在开发的网站的付款,我希望用户能够直接用信用卡付款,而无需创建/使用PayPal帐户 .

发生的情况是,当选择国家/地区字段中的美国选项时,用户只有此选项,否则用户必须使用paypal帐户付款 .

When selected option is United States

When selected option is Portugal .

  • 我使用的帐户来自葡萄牙

  • 我的沙盒帐户设置中有"PayPal Account Optional"功能

  • 提交表单为“立即购买”类型(又名_xclick)

知道为什么paypal有这种行为吗?

我提交此表格:

<form name="paypalform" id="paypalform" action="@(paypalUrl)" method="post" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="currency_code" value="EUR">
    <input type="hidden" name="amount" value="99">
    <input type="hidden" name="item_name" value="@(itemName)"> 
    <input type="hidden" name="quantity" value="1">
    <input type="hidden" name="custom" value="@(Model.OrderId)"> <!--Transaction variable-->
    <input type="hidden" name="business" value="@(paypalId)">
    <input type="hidden" name="no_shipping" value="2">
</form>

“@(...)”只是变量 .

提前致谢 .

2 回答

相关问题