使用我的信用卡或借记卡付款的PayPal Express Checkout(可选)注册

时间:2013-05-19 11:22:08

标签: paypal express-checkout

我使用php实现PayPal Express Checkout作为付款方式。

我想要的所有用户都是他们的首选......

使用我的信用卡或借记卡付款
(可选)注册以获取PayPal,以便日后续订

他们的第二个选择应该是......

使用我的PayPal帐户付款
登录您的PayPal帐户以完成购买

这是我的表格......

<form id="paypal_form" class="paypal" action="payments.php" method="post">
  <input name="cmd" type="hidden" value="_xclick" />
  <input name="no_note" type="hidden" value="1" />
  <input name="lc" type="hidden" value="GR" />
  <input name="currency_code" type="hidden" value="EUR" />
  <input name="bn" type="hidden" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHostedGuest" />
  <input name="item_number" type="hidden" value="1" />
  <input type="submit" value="Submit Payment with PayPal" />
</form>

我已在沙箱帐户中设置

TYPE:BUSINESS
PayPal帐户的个人资料 - &gt;更多选项 - &gt;我的销售工具 - &gt;网站首选项 - &gt; PayPal账户可选:ON

结果是我得到了屏幕......

创建PayPal帐户
并使用您的借记卡或信用卡付款

有什么建议!?!?

3 个答案:

答案 0 :(得分:2)

如果在调用setExpressCheckout方法时添加这些参数,它可以正常工作:

<input type=hidden name=SOLUTIONTYPE value=Sole>
<input type=hidden name=LANDINGPAGE value=Billing>

很难找到,但我在这里找到了它:https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pp_expresscheckout_advancedfeaturesguide.pdf

希望它有所帮助!

此致

答案 1 :(得分:0)

您没有看到这个显示的原因是因为每个coutntry都没有PayPal帐户可选,并选择跨境交易。如果您在代码中删除了以下内容,则应在浏览器中看到相同的结果。

lc=GR

答案 2 :(得分:0)

将此简单输入字段添加到您的Paypal付款表单中:

<input type="hidden" value="billing" name="landing_page">

对我来说很好。

您可以查看完整的Paypal付款表格:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="yourbusinesspaypalaccountemail@mail.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" value="billing" name="landing_page"> <!-- This filed redirect to Billing Page -->
<input type="hidden" name="item_name" value="Your Item Name">
<input type="hidden" name="amount" value="YOUR TOTAL AMOUNT">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="Your Success URL">
<input type="hidden" name="cancel_return" value="Your Cancel Return URL">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.yourdomain.com/images/paypalpaynowbtn.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.yourdomain.com/images/paypalpaynowbtn.gif" width="1" height="1">
</form>