使用GET转发到Paypal [英] Forwarding to Paypal with GET

查看:98
本文介绍了使用GET转发到Paypal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常在我的网站上使用标准的POST表单,其中包含用户填写的字段,这些字段会直接发送到

i usually use the standard POST form on my site, with fields that the user fills out, which POSTs directly to https://www.paypal.com/cgi-bin/webscr

我现在想做的是,将表单提交到我自己的站点,用于我自己的内部编程目的,完成后,我的站点将自动将用户转发到Paypal,并在其中提供相关字段数据网址,例如: https://www.paypal.com/cgi-bin/webscr?first_name=foo&last_name=bar& 等...

what i would like to do now, is have the form submit to my own site, for my own internal programming purposes, and when that is done, my site would automatically forward the user to paypal, with the relevant field data in the URL, for example, to: https://www.paypal.com/cgi-bin/webscr?first_name=foo&last_name=bar& etc...

这将使我不必在表单的中间阶段放置隐藏字段,从而要求用户单击此处以完成在PayPal上的交易"

this would save me from having to put the intermediate stage of the form with the hidden fields, asking the user to "click here to complete your transaction on PayPal"

希望我能理解....

谢谢!

推荐答案

当然可以.但是请记住,除非您涉及BMCreateButton或Express Checkout API,否则该金额将允许URL操作,因此您必须然后对已付款金额进行检查.

Sure, it'll work. But keep in mind that unless you involve the BMCreateButton or Express Checkout API's, the amount will be open to URL manipulation, so you must do a check on the paid amount afterwards.

例如; https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=blah@blah2.com&amount=0.99&currency_code=GBP&item_name=Blah+for+sale

注意:GET重定向必须在浏览器端或通过header()重定向启动.您不能为此使用cURL,因为这是服务器到服务器的通信.

Note: The GET redirect must be initiated on the browser-side or via a header() redirect. You can't use cURL for this, since that's a server-to-server communication.

这篇关于使用GET转发到Paypal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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