paylike.io的rest api的python包装器

paylike的Python项目详细描述


PayLike Python开发包

paylike.io的rest api的python实现

限制

只有事务管理部分已经实现,您可以在这里找到正式的api文档: https://github.com/paylike/api-docs#transactions

基本用法

client=PaylikeApiClient(api_key,merchant_id)

方法

取消交易
'''Void or partially void the reserved amount on a transaction  - transactionId: String,      // required  - amount: Decimal,            // If no amount is given, the full amount will be voided'''client.cancel_transaction(transaction_id,amount=None)

捕获事务

'''Capture a transaction  - transactionId: String,      // required  - amount: Decimal,            // required  - descriptor: String,         // optional, text on client bank statement  - currency: String,           // optional, expected currency (for additional verification)'''client.capture_transaction(transaction_id,amount,descriptor='',currency=None)

从交易创建付款

请务必阅读有关recurring payments的内容。

'''Create a payment, based on an existing transaction (used for recurring payments)  - transactionId: String,      // required  - currency: String,           // required, three letter ISO  - amount: Decimal,            // required, amount in minor units  - descriptor: String,         // optional, the statement on the customers bankaccount. Will fallback to merchant descriptor'''client.create_payment_from_transaction(transaction_id,currency,amount,descriptor='')

从保存的卡创建付款

请务必阅读有关recurring payments的内容。 建议使用create_payment_from_transaction

'''Create a payment from a saved card token  - cardId: String,             // required  - currency: String,           // required, three letter ISO  - amount: Decimal,            // required  - descriptor: String,         // optional, the statement on the customers bankaccount. Will fallback to merchant descriptor'''client.create_payment_from_saved_card(card_id,currency,amount,descriptor='')

获取事务

'''Fetch a transaction  - transactionId: String,      // required'''client.get_transaction(transaction_id)

获取交易

'''Fetch transactions  - limit: Number,              // optional, the number of transactions to fetch. Default 100'''client.get_transactions(limit=100)

退款交易
'''Refund, or partially refund a transaction  - transactionId: String,      // required  - amount: Decimal,            // required  - descriptor: String,         // optional, the statement on the customers bankaccount. Will fallback to merchant descriptor'''client.refund_transaction(self,transaction_id,amount,descriptor="")'''

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何正确测试和调试使用照相机闪光灯的应用程序?   组织。jboss。放松点。spi。未处理的异常:java。lang.NoSuchMethodError:org。冬眠SessionFactory。openSession()Lorg/hibernate/Session;   在同一行上声明多个Java数组?   java Spring批处理管理员,无法替换占位符“批处理”。商业模式。脚本'   使用JQuery的网站上出现java HtmlUnit“不支持浏览器”错误   java JavaFX如何将图形“裁剪”到按钮   java处理mysql中包含逗号的数字   java Hibernate语法错误:应为点   如何根据给定的日期在java中获取30天的回溯日期   java Servlet URL映射   线程“awteventque0”java中的多线程java JFrame异常。util。EmptyStackException,即使堆栈先初始化   JavaSpring控制器/组件实现可序列化   java如何在游戏完成时启动带有按钮的对话框?   java Hibernate双向多对多实现   如何使用Xpath Java修改XML中的属性值,包括注释部分   java Mockito模拟构造函数示例   java如何在不重写的情况下写入文本文件?