未知
checkout-by-amazon的Python项目详细描述
这是一个与亚马逊的综合支付接口的库 系统,Checkout by Amazon。
安装
如果安装了pip,您只需运行:
$ pip install cba
如果您缺少pip但有easy_install,请运行:
$ easy_install cba
如果两者都没有,请下载此软件包并运行:
$ python setup.py install
用法
import cba cba_settings = cba.Settings( merchant_id='...', marketplace_id='...', public_access_key='...', secret_access_key='...', sandbox=False, ) if preexisting_id: contract = cba.PurchaseContract(id=preexisting_id, settings=cba_settings) else: contract = cba.PurchaseContract(settings=cba_settings) for item in cart: contract.order.add_item(cba.Item(id=item.id, title=item.name, price=item.price)) # Commit the order to Amazon after buyer has selected address and payment # method. contract.complete()
许可证
这个程序是免费软件:你可以重新发布和/或修改它 根据由 自由软件基金会,许可证的第3版,或者 你的选择)任何更高版本。
这个程序的发布是希望它会有用,但是 没有任何保证;甚至没有 适销性或适合某一特定目的的适销性。看小GNU 一般公共许可证了解更多详细信息。
你应该收到一份GNU通用公共许可证的副本 用这个程序。如果没有,请参阅http://www.gnu.org/licenses/。