orbital-plugin

Plugin for accessing Orbital as a payment gateway

Лицензия

Лицензия

Категории

Категории

Ruby Языки программирования
Группа

Группа

org.kill-bill.billing.plugin.ruby
Идентификатор

Идентификатор

orbital-plugin
Последняя версия

Последняя версия

0.1.18
Дата

Дата

Тип

Тип

pom
Описание

Описание

orbital-plugin
Plugin for accessing Orbital as a payment gateway
Ссылка на сайт

Ссылка на сайт

http://github.com/killbill/killbill-orbital-plugin
Система контроля версий

Система контроля версий

https://github.com/killbill/killbill-orbital-plugin/

Скачать orbital-plugin

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.kill-bill.billing.plugin.ruby/orbital-plugin/ -->
<dependency>
    <groupId>org.kill-bill.billing.plugin.ruby</groupId>
    <artifactId>orbital-plugin</artifactId>
    <version>0.1.18</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.kill-bill.billing.plugin.ruby/orbital-plugin/
implementation 'org.kill-bill.billing.plugin.ruby:orbital-plugin:0.1.18'
// https://jarcasting.com/artifacts/org.kill-bill.billing.plugin.ruby/orbital-plugin/
implementation ("org.kill-bill.billing.plugin.ruby:orbital-plugin:0.1.18")
'org.kill-bill.billing.plugin.ruby:orbital-plugin:pom:0.1.18'
<dependency org="org.kill-bill.billing.plugin.ruby" name="orbital-plugin" rev="0.1.18">
  <artifact name="orbital-plugin" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.kill-bill.billing.plugin.ruby', module='orbital-plugin', version='0.1.18')
)
libraryDependencies += "org.kill-bill.billing.plugin.ruby" % "orbital-plugin" % "0.1.18"
[org.kill-bill.billing.plugin.ruby/orbital-plugin "0.1.18"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

killbill-orbital-plugin

Plugin to use Orbital as a gateway.

Release builds are available on Maven Central with coordinates org.kill-bill.billing.plugin.ruby:orbital-plugin.

Kill Bill compatibility

Plugin version Kill Bill version
0.0.x 0.16.z
0.1.x 0.18.z

Requirements

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

Configuration

curl -v \
     -X POST \
     -u admin:password \
     -H 'X-Killbill-ApiKey: bob' \
     -H 'X-Killbill-ApiSecret: lazar' \
     -H 'X-Killbill-CreatedBy: admin' \
     -H 'Content-Type: text/plain' \
     -d ':orbital:
  - :account_id: "merchant_account_1"
    :login: "your-login"
    :password: "your-password"
    :merchant_id: "your-merchant-id"
  - :account_id: "merchant_account_2"
    :login: "your-login"
    :password: "your-password"
    :merchant_id: "your-merchant-id"' \
     http://127.0.0.1:8080/1.0/kb/tenants/uploadPluginConfig/killbill-orbital

To go to production, create a orbital.yml configuration file under /var/tmp/bundles/plugins/ruby/killbill-orbital/x.y.z/ containing the following:

:orbital:
  :test: false

Usage

To store a credit card:

curl -v \
     -X POST \
     -u admin:password \
     -H 'X-Killbill-ApiKey: bob' \
     -H 'X-Killbill-ApiSecret: lazar' \
     -H 'X-Killbill-CreatedBy: admin' \
     -H 'Content-Type: application/json' \
     -d '{
       "pluginName": "killbill-orbital",
       "pluginInfo": {
         "properties": [
           {
             "key": "ccFirstName",
             "value": "John"
           },
           {
             "key": "ccLastName",
             "value": "Doe"
           },
           {
             "key": "address1",
             "value": "5th Street"
           },
           {
             "key": "city",
             "value": "San Francisco"
           },
           {
             "key": "zip",
             "value": "94111"
           },
           {
             "key": "state",
             "value": "CA"
           },
           {
             "key": "country",
             "value": "USA"
           },
           {
             "key": "ccExpirationMonth",
             "value": 12
           },
           {
             "key": "ccExpirationYear",
             "value": 2017
           },
           {
             "key": "ccNumber",
             "value": "4111111111111111"
           }
         ]
       }
     }' \
     "http://127.0.0.1:8080/1.0/kb/accounts/<ACCOUNT_ID>/paymentMethods?isDefault=true"

To trigger a payment:

curl -v \
     -X POST \
     -u admin:password \
     -H 'X-Killbill-ApiKey: bob' \
     -H 'X-Killbill-ApiSecret: lazar' \
     -H 'X-Killbill-CreatedBy: admin' \
     -H 'Content-Type: application/json' \
     -d '{
       "transactionType": "AUTHORIZE",
       "amount": 5
     }' \
     http://127.0.0.1:8080/1.0/kb/accounts/<ACCOUNT_ID>/payments

Plugin properties

Key Description
skip_gw If true, skip the call to Orbital
payment_processor_account_id Config entry name of the merchant account to use
external_key_as_order_id If true, set the payment external key as the Orbital order id
cc_first_name Credit card holder first name
cc_last_name Credit card holder last name
cc_type Credit card brand
cc_expiration_month Credit card expiration month
cc_expiration_year Credit card expiration year
cc_verification_value CVC/CVV/CVN
cvv_indicator_visa_discover If true, set '9' as CardSecValInd when CVV is absent (Visa / Discover only )
cvv_indicator_override_visa_discover CardSecValInd value when CVV is absent (Visa / Discover only)
email Purchaser email
address1 Billing address first line
address2 Billing address second line
city Billing address city
zip Billing address zip code
state Billing address state
country Billing address country
eci Network tokenization attribute
payment_cryptogram Network tokenization attribute
transaction_id Network tokenization attribute
payment_instrument_name ApplePay tokenization attribute
payment_network ApplePay tokenization attribute
transaction_identifier ApplePay tokenization attribute
order_id Orbital order id
trace_number Trace number used for inquiry transaction information
org.kill-bill.billing.plugin.ruby

Kill Bill

Kill Bill has been the leading open-source platform for billing and payment since 2010.

Версии библиотеки

Версия
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1