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 DataInputStream UTFDataFormatException:字节88周围的输入格式错误根本原因   排序后的java输出?   Java 7 nio文件属性窗口   使用迭代器的Java fire bullet   Selenium Java Webdriver NoClassDefFoundError:org/apache/http/config/RegistryBuilder   java NDK<Utils/Log。h> 没有这样的文件或目录   java OpenCV,从图像中剪切片段   java从非线程安全类实例化线程安全类   链表的java插入方法   多线程在测试中杀死java线程   无法将泛型项实例化为Java列表   java AjaxFormComponentUpdateingBehavior onkeypress   JavaSpringBootOAuth2:无用户信息端点如何直接在客户端从JWT访问令牌加载身份验证(主体)   多线程Java线程不能并行工作   java如何从soap响应中提取相同元素类型的列表?   java SAT4J隐含用例   java检查字符串是否使用规定的规则集形成   打开写入java的eclipse文件