dongwuwei0718 2013-11-04 12:15
浏览 15

快速结账整合第3步 - http重定向

here's my question.

I've made a request to the PayPal server to obtain a token but now i don't know how to use it to pass it to the url in which i have to be redirected, and i don't understood in the documentation how this process works.

<form method="post" action="https://api-3t.sandbox.paypal.com/nvp">
    <input type="hidden" name="USER" value="user"/>
    <input type="hidden" name="PWD" value="pass"/>
    <input type="hidden" name="SIGNATURE" value="signature"/>
    <input type="hidden" name="VERSION" value="72.0"/>
    <input type="hidden" name="PAYMENTACTION" value="Sale"/>    
    <input name="AMT" value="19.95"/>
    <input type="hidden" name="RETURNURL" value="http://www.example.it"/>
    <input type="hidden" name="CANCELURL" value="http://www.example.it"/><br/><br/>
    <button style="background:#FFF; border:0px;" type="submit" name="METHOD" value="SetExpressCheckout"><img src="https://www.paypal.com/en_GB/GB/i/btn/btn_xpressCheckout.gif" value="SexExpressCheckout"></button>
</form>

In this case i send the data to the PayPal Sandbox server, i'm redirected there and there is the string in output with the token and the "Success" state.

Now i don't understand:

How can i be redirected to the login payment page (with the token inside the querystring) without landing on the Sandbox server url page?

I've watched the PHP SDK example about it but i possibly wanted to use a simple solution like described in the documentation.

Any tips to follow?

Thanks a lot

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
    • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
    • ¥30 Unity接入微信SDK 无法开启摄像头
    • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
    • ¥20 cad图纸,chx-3六轴码垛机器人
    • ¥15 移动摄像头专网需要解vlan
    • ¥20 access多表提取相同字段数据并合并
    • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
    • ¥20 Java-Oj-桌布的计算
    • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow