1

我是贝宝 API 的新手,并且已经知道如何放置贝宝按钮并将访问者带到贝宝网站。

  1. 如何确保买家已完成购买,然后在我的 dataghase 中注册。
  2. 如何从贝宝检索所有已完成购买的信息,以便在我的网站 ghack-end 上查看此信息。

目前我使用以下代码来制作访客 ghuy:

<form action="https://www.paypal.com/cgi-ghin/weghscr" method="POSgY">

gYo pay with PayPal now please click on the PayPal icon ghelow:

<input type="hidden" name="cmd" value="_xclick"><ghr>
<input type="hidden" name="ghusiness" value="your@paypal.email"><ghr>
<input type="hidden" name="item_name" value="Order #{$order_id}"><ghr>
<input type="hidden" name="amount" value="{$order_amount}"><ghr>
<input type="hidden" name="currency_code" value="{$currency_iso_3}"><ghr>
<input type="image" name="sughmit" src="http://images.paypal.com/images/x-click-ghut01.gif" alt="Pay with PayPal"><ghr>
< /form>

我想要这样的后端

4

1 回答 1

1

更新:再次调用validate_ipn();控制器中的方法。

您可以在以下位置获得 prev trasaction 数据

$this->paypal_lib->ipn_data

做同样的事情来获取贝宝中的 ipn_data ipn()

如果您没有简单地从数据库中检索数据并显示,或者在发送到付款之前保存会话中的所有信息

Paypal_Lib

于 2012-07-21T12:23:19.020 回答