dongluedeng1524 2013-10-04 18:09
浏览 76
已采纳

如何将PayPal Classic Payment表单转换为PayPal REST API PHP应用程序?

The following is the simplest PayPal interface form:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" /> 
  <input type="hidden" name="cmd" value="_xclick" /> 
  <input type="hidden" name="business" value="JohnDoe2@example.com" /> 
  <input type="hidden" name="item_name" value="Purchase at the Virtual Store" /> 
  <input type="hidden" name="item_number" value="Organic-001" />
  <input type="hidden" name="amount" value="17.4" /> 
  <input type="hidden" name="currency_code" value="EUR" /> 
  <input type="hidden" name="notify_url" value="http://www.example.com/paypalnotify.php" /> 
  <input type="submit" name="submit" value="Pay now By PayPal" />
</form>

This form is specific to a PayPal premier business account and a given amount to pay, with following key parameters:

  1. business=JohnDoe2@example.com.
  2. amount=17.4EUR.
  3. currency_code=EUR or USD.
  4. notify_url as the callback for PayPal.com as it ends.

By clicking on the [submit] button, it perfoms this:

  1. It redirects the customer to the paypal.com site.
  2. The user will login into her/his PayPal account, and validate the payment.
  3. The PayPal site will call the paypalnotify.php like a callback, passes information indicating if the payment has suceeded, cancelled, or not valid...

Now in the new interface using PalPal REST API, using PHP development kit, how one has to proceed to accomplish the payment ?

  • 写回答

1条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 edge跟谷歌浏览器的默认搜索引擎无法修改,如何解决?
      • ¥15 access数据库出错
      • ¥100 matlab数学建模习题,求解答
      • ¥15 blender python输出纹理坐标(像素级)与三维坐标的对应关系
      • ¥15 python文件分发
      • ¥15 关于#c语言#的问题:要求:输出格式要界面直观、清晰大方、格式规范
      • ¥15 计算机组成汇编语言电路升级
      • ¥15 hadoop网站点击流数据分析项目
      • ¥15 TDA4 USB 识别不到的问题
      • ¥36 禁用ssl重协商以达到解决DOS漏洞