如何从Paypal取回价值? [英] How to get value back from Paypal?

查看:77
本文介绍了如何从Paypal取回价值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从上个月开始面临这个问题.首先,我能够从Paypal取回价值.

I am facing this problem from last month. First i was able to get value back from paypal.

现在我无法从Paypal取回价值.

Now I am not able to get back value from paypal.

我正在使用以下代码.

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" style="padding: 0; margin: 0;">
    <input type="hidden" name="cmd" value="_xclick/" />
    <input type="hidden" name="business" value="my_bussiness_id" />
    <input type="hidden" name="quantity" value="1" />
    <input type="hidden" name="item_name" value="item" />
    <input type="hidden" name="item_number" value="1" />
    <input type="hidden" name="amount" value="item_price" />
    <input type="hidden" name="shipping" value="0" />
    <input type="hidden" name="no_note" value="1" />
    <input type="hidden" name="notify_url" value="Your_notify_url">
    <input type="hidden" name="currency_code" value="GBP" />
    <input type="hidden" name="rm" value="2" >
    <input type="hidden" name="return" value="your return url">
    <input type="image" border="0" name="paypal" src="images/btn_paypal_nl.gif" onClick="" />
    </form>

先谢谢了.

汉字

推荐答案

实际上有两种获取数据的方法-一个返回URL,该URL在完成后以返回值发布(我并不是很幸运地使该工作正常进行)然后是一个单独的函数,当交易完成时,该函数将向您发送帖子到您网站上的单独页面,您可以在其中收集发布到网站上的所有变量.我建议使用后者,因为在立即购买"页面上,由于PayPal端的返回按钮UI相当薄弱,有可能使用户无法返回该网站.

There's actually two methods of getting the data back--a return URL that posts upon completion with return values (I've not been terribly lucky making that work) then a separate function that sends you a post upon completion of a transaction to a separate page on your site, where you can collect back all the variables you posted to the site. I suggest the latter because on a buy it now page there's a possibility of the user not being returned to the site because the return button UI is pretty weak on PayPal's end.

要进行设置,请登录到PayPal帐户,然后点击myaccount>个人资料>网站付款首选项.启用支付数据传输"将达到目的.一旦正确设置好它,交易完成后,它将向您选择的页面发送您发送的所有内容的帖子....记住,您可以发送诸如名称,地址等变量通过在表格中正确定义它们.在此处

To set it up you'd log in to your PayPal account, click on myaccount > profile > website payment preferences. Enabling the "payment data transfer" will do the trick. Once you've got it setup correctly, upon completion of a transaction it'll send to the page of your choice a post of everything you sent it....remember, you can send in variables such as Name, Address, etc just by defining them properly in the form. All the variables available are found here

别忘了建立一个沙盒网站进行测试!祝你好运.

Don't forget to build a sandbox site to test! Good Luck.

这篇关于如何从Paypal取回价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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