dongzhiman2162 2013-07-25 11:11
浏览 39
已采纳

Paypal第三方购物车集成不返回表单值

I am facing a problem in paypal 3rd party shopping cart integration. After the sucessfull payment, it doesnot get back values from paypal. I am using the following code:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="example@mail.com">
<input type="hidden" name="item_name_1" value="Item Name 1">
<input type="hidden" name="amount_1" value="1.00">
<input type="hidden" name="item_name_2" value="Item Name 2">
<input type="hidden" name="amount_2" value="2.00">
<input type="hidden" name="item_name_3" value="Item Name 3">
<input type="hidden" name="amount_3" value="3.00">
<input type="hidden" name="item_name_4" value="Item Name 4">
<input type="hidden" name="amount_4" value="4.00">
<input type='hidden' name='return' value='http://localhost/paypal_multiple.php'>
<input type='hidden' name='cancel_return'value='http://localhost/paypal_multiple.php'>
<input type='hidden' name='custom' value='customer@gmail.com'>
<input type='hidden' name='notify_url' value='http://localhost/paypal_multiple.php'>
<input type="submit" value="PayPal">
</form>

Please help me.

  • 写回答

1条回答 默认 最新

  • dtihe8614 2013-07-25 11:23
    关注

    After searching other questions in SO, I found that below two fields were missing.It's working fine now.

    <input type="hidden" name="rm" value="2" />
    <input type="hidden" name="charset" value="utf-8" />
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败
  • ¥15 树莓派5怎么用camera module 3啊
  • ¥20 java在应用程序里获取不到扬声器设备
  • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。
  • ¥15 Attention is all you need 的代码运行
  • ¥15 一个服务器已经有一个系统了如果用usb再装一个系统,原来的系统会被覆盖掉吗
  • ¥15 使用esm_msa1_t12_100M_UR50S蛋白质语言模型进行零样本预测时,终端显示出了sequence handled的进度条,但是并不出结果就自动终止回到命令提示行了是怎么回事: