2012-07-21 59 views
1

我是新的贝宝API,已经知道如何把贝宝按钮,并采取访问者贝宝网站。如何与贝宝整合

  1. 如何确保买家已完成购买,然后再在我的数据库中注册相同商品。
  2. 如何检索信息aghout所有完成的购买从贝宝,以便在我的weghsite 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="[email protected]"><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> 

i want backend like this

回答

1

更新:再次致电validate_ipn(); methos在您的控制器。

你可以在

$this->paypal_lib->ipn_data 

获得分组trasaction数据做同样的事情来获得ipn_data在PayPal的ipn()也。

如果你没有得到根本从数据库中检索和显示数据,否则之前会议

Paypal_Lib

+0

发送到支付全部保存的信息。但我认为你不明白我的问题..我已阅读所有这些图书馆和更多的教程..但我只需要知道如何获得信息后购买完成 – user1080247 2012-07-21 12:25:40

+0

我不需要生成任何按钮...我只需要信息后购买 – user1080247 2012-07-21 12:26:14

+0

@ user1080247:更新现在检查.. – 2012-07-21 12:39:31