请帮助我解决沙箱贝宝中的此问题 [英] Please help me to solve this issue in sandbox paypal

查看:91
本文介绍了请帮助我解决沙箱贝宝中的此问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的网站上实现"Paypal网站支付专业版",但是在沙盒中进行测试时,它会重定向到带有消息的"https://api-3t.sandbox.paypal.com/nvp"

I am implementing the "Paypal website payment pro" in my website, but while testing in sandbox it redirects to "https://api-3t.sandbox.paypal.com/nvp" with message

TIMESTAMP=2011%2d06%2d02T06%3a51%3a28Z&CORRELATIONID=e9d9eca7daf6a&ACK=Success&VERSION=56%2e0&BUILD=1863577&AMT=75%2e00&CURRENCYCODE=USD&AVSCODE=X&CVV2MATCH=M&TRANSACTIONID=6JM048602T845381W



但不会返回指定的返回"网址.

拜托,帮我解决这个问题.

我正在发送以下参数:



but it not returning to specified "return" url.

Please guys, help me to sort out this problem.

I am sending these parameters:

<form method="POST" action="https://api-3t.sandbox.paypal.com/nvp>
<input  type="hidden" name="USER"           value="myapivalue" />
<input type="hidden"  name="PWD"            value="mypassword" />
<input type="hidden"  name="SIGNATURE"      value="mysignature" />
<input type="hidden" name="METHOD"         value="DoDirectPayment"  />
<input type="hidden" name="VERSION"        value="56.0"  />
<input type="hidden" name="PAYMENTACTION"   value="Sale" />
<input type="hidden" name="IPADDRESS"       value="59.178.92.233" />
<input type="hidden" name="CREDITCARDTYPE"  value="Discover" />
<input type="hidden" name="ACCT"            value="6011000990139424" />
<input type="hidden"  name="EXPDATE"        value   ="052016" />
<input type="hidden"  name="STREET"         value="9606 North MoPac Expressway" />
<input  type="hidden" name="CITY"           value="Austin" />
<input  type="hidden" name="STATE"          value="TX" />
<input type="hidden"  name="ZIP"            value="78759" />
<input type="hidden"  name="AMT"            value="75.00" />
<input type="hidden" name="RETURN" value="http://www.mywebsite.com" />
<input type="hidden"  name="CSC"            value="123" />
<input type="hidden"  name="FIRSTNAME"            value="MyName" />
<input type="hidden"  name="LASTNAME"            value="myLastName" />
<input type="hidden"  name="COUNTRYCODE"    value="US" />
<input type="submit" name="submit" />
</form>

推荐答案

对于这种类型的交易,您必须使用API​​,在其中您要引用PayPal的SDK和创建了API凭证(很头疼).仅使用购物车上载命令并让PayPal完成交易的其余部分就更容易了.但是您需要创建一个IPN侦听器并在您的帐户上激活IPN.这样,您就不需要SSL或任何特殊的东西,也不会拥有客户的信用卡信息. IPN响应会发回运输信息和您真正需要的任何数据.我建议您使用"custom"变量将重新调整数据与购买相关联.
For that kind of transaction you have to use the API, in which you have you reference PayPal''s SDK and have created API credentials(Big headache). Its easier to just use the cart upload command and let PayPal complete the rest of the transaction. But you''ll need to create an IPN listener and activate IPN on your account. That way you dont need an SSL or anything special nor will you have possession of the customers credit card info. The IPN response sends back the shipping information and any data you really need. I suggest you use the "custom" variable to associate the retuning data with the purchase.


这篇关于请帮助我解决沙箱贝宝中的此问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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