项目作者: killbill

项目描述 :
Batch deposit plugin for Kill Bill
高级语言: Java
项目地址: git://github.com/killbill/killbill-deposit-plugin.git
创建时间: 2021-03-10T14:59:15Z
项目社区:https://github.com/killbill/killbill-deposit-plugin

开源协议:Apache License 2.0

下载


killbill-deposit-plugin

Maven Central

Kill Bill Deposit plugin.

Kill Bill compatibility

Plugin version Kill Bill version
0.y.z 0.22.z
0.1.z 0.24.z

Requirements

The plugin needs a database. The latest version of the schema can be found here.

Installation

Locally:

  1. kpm install_java_plugin deposit --from-source-file target/deposit-*-SNAPSHOT.jar --destination /var/tmp/bundles

Configuration

Configure minimum payment amounts in the plugin:

  1. curl -v \
  2. -X POST \
  3. -u admin:password \
  4. -H 'X-Killbill-ApiKey: bob' \
  5. -H 'X-Killbill-ApiSecret: lazar' \
  6. -H 'X-Killbill-CreatedBy: admin' \
  7. -H 'Content-Type: text/plain' \
  8. -d '!!org.killbill.billing.plugin.deposit.DepositConfiguration
  9. minAmounts:
  10. USD: 0.5' \
  11. http://127.0.0.1:8080/1.0/kb/tenants/uploadPluginConfig/killbill-deposit

Make sure to enable the control plugin in Kill Bill:

  1. org.killbill.payment.invoice.plugin=killbill-deposit

This can also be configured on a per-tenant or even per-request basis.

Usage

  1. curl -v \
  2. -X POST \
  3. -u admin:password \
  4. -H "X-Killbill-ApiKey: bob" \
  5. -H "X-Killbill-ApiSecret: lazar" \
  6. -H "Content-Type: application/json" \
  7. -H "Accept: application/json" \
  8. -H "X-Killbill-CreatedBy: testing" \
  9. -d '{
  10. "accountId": "e4ab98c2-3a4c-4595-ac14-b70e7324b1b5",
  11. "effectiveDate": "2021-03-16",
  12. "paymentReferenceNumber": "WIRE-12345",
  13. "depositType": "wire",
  14. "payments": [
  15. {
  16. "invoiceNumber": 824,
  17. "paymentAmount": 1.23
  18. }
  19. ]
  20. }' \
  21. "http://127.0.0.1:8080/plugins/killbill-deposit/record"

About

Kill Bill is the leading Open-Source Subscription Billing & Payments Platform. For more information about the project, go to https://killbill.io/.