2013-10-04 18:09
浏览 76

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

The following is the simplest PayPal interface form:

<form action="" method="post" /> 
  <input type="hidden" name="cmd" value="_xclick" /> 
  <input type="hidden" name="business" value="" /> 
  <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="" /> 
  <input type="submit" name="submit" value="Pay now By PayPal" />

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

  2. amount=17.4EUR.
  3. currency_code=EUR or USD.
  4. notify_url as the callback for as it ends.

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

  1. It redirects the customer to the 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条回答 默认 最新

相关推荐 更多相似问题