URL代替贝宝表格(分期付款计划) [英] URL instead of Paypal Form ( Installment Plan)

查看:109
本文介绍了URL代替贝宝表格(分期付款计划)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由Paypal生产的用于分期付款计划的代码,我想将其转换为直接链接的签名网址.

I have a Paypal produced code for installment plan and i want to turn it to a signle url for direct linking.

这是代码:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">

<input type="hidden" name="cmd" value="_s-xclick">

<input type="hidden" name="hosted_button_id" value="SOME VALUE HERE">

<input type="hidden" name="return" value="http://www.mysite.com/thanks.html"/>

<table>

<tr><td><input type="hidden" name="on0" value="plan"></td></tr>

<tr><td><input type="hidden" name="os0" value ="option_0"></td><td><strong>Beginner -     £137.50 every month for 4 months</strong></td></tr>

<tr><td></td><td>Number of payments 4</td></tr><tr><td></td><td>Start payments At     checkout</td></tr>

<tr><td></td><td>

<table>

<tr><th align="left">Due*</th><th align="right">Amount</th></tr>

<tr><td>At checkout</td><td align="right">£137.50 GBP</td></tr><tr><td>Every 1 month (x     3)</td><td align="right">£137.50 GBP</td></tr><tr><td COLSPAN="2" ALIGN="right">Total     £550.00 GBP</td></tr></table></td></tr>

<tr><td colspan="3"><i>* We calculate payments from the date of checkout.</i></td></tr>    </table>

<table><tr><td align=center><i>Sign up for</i></td></tr><tr><td><input type="image"     src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_installment_plan_LG.gif" border="0"     name="submit" alt="PayPal – The safer, easier way to pay online."></td></tr></table>

<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif"     width="1" height="1">

</form>

我已经准备好了Paypal开发人员文档,但找不到任何有用的东西. 你能帮我这个忙吗? 请注意,这是用于分期付款计划(定期付款)

I have ready the Paypal developer documentation but couldn't find anyhting useful. Can you please help me out with this ? Please note that this is for installment plan (recurring payments)

推荐答案

已解决!!

几天后,收到多封电子邮件和对Paypal的呼叫,这就是故事了.

After several days and multiple emails and calls to Paypal here is the story.

我们在WordPress网站上有一个定价表,该表仅允许插入电子邮件链接.由于我们有分期付款选项按钮,并且不想使用俗气的旧Paypal按钮.

We have a Pricing Table on our WordPress site that only allows for an email link to be inserted. Since we have installment payment option button and did not want to use the tacky old Paypal button.

问题:问题是PP不能获取所有参数,因为它被设置为链接而不是HTML.请确保对参数进行适当的编码,以避免由于未编码的字符而导致URL字符串丢失参数的问题.

Problem: The issue is that PP was not getting all of the parameters because it set as a link rather than HTML. Please make sure you encode your parameters appropriately to avoid issues with the URL string losing parameters due to unencoded characters.

解决方案:基本上,您需要将变量作为GET参数添加到您的URL字符串中.所以链接看起来像这样 https://www.paypal.com/cgi-bin/webscr?cmd = _s-xclick&hosted_button_id = 在此处插入按钮值&on0 =& os0 = option_0& currency_code = USD

SOLUTION: Basically you need to add the variables as GET parameters to your URL string. So the link would look something like this https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id= insert button value here&on0=&os0=option_0&currency_code=USD

将分配的按钮值ID放在在此处插入按钮值"部分中.

Place your assigned button value ID in the section"insert button value here".

  • 注意你的间距!!!

我觉得自己解决了人类最大的谜团之一.享受吧!

I feel like I solved one the of greatest mysteries of man kind. Enjoy!

这篇关于URL代替贝宝表格(分期付款计划)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆