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 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测