2013-01-15 75 views
0

我有网站建在codeigniter框架。我想使用google checkout。 我已经使用此代码来转移资金,但我需要返回的东西,以便我可以知道转移成功,然后将值输入到我的数据库。谷歌结帐集成 - codeigniter

我不知道该怎么做。

任何人都可以告诉我一步一步如何做到这一点?

我的形式:

<form action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/xxxxxxx" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" target="_top"> 
    <input name="item_name_1" type="hidden" value="Deposite"/> 
    <input name="item_description_1" type="hidden" value="Money Deposite"/> 
    <input name="item_quantity_1" type="hidden" value="1"/> 
    <input name="item_price_1" type="text" value="30.0"/> 
    <input name="item_currency_1" type="hidden" value="USD"/> 
    <input name="_charset_" type="hidden" value="utf-8"/><br /> 
    <input alt="" src="https://sandbox.google.com/checkout/buttons/buy.gif?merchant_id=xxxxxxxx&amp;w=117&amp;h=48&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/> 
</form> 

回答

0

...但我需要的东西回来,这样我可以知道,转让成功,然后输入值到我的数据库......

Google Checkout API称之为“第2部分”或“过程结算订单”。

这是tutorial using their Java lib。请注意,这并不意味着你使用这个(或任何)特定的lib,它只是向你显示流程。其他库为here