securenet-plugin

Plugin for accessing SecureNet as a payment gateway

License

License

Categories

Categories

Ruby Languages Net
GroupId

GroupId

org.kill-bill.billing.plugin.ruby
ArtifactId

ArtifactId

securenet-plugin
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

pom
Description

Description

securenet-plugin
Plugin for accessing SecureNet as a payment gateway
Project URL

Project URL

http://github.com/killbill/killbill-securenet-plugin
Source Code Management

Source Code Management

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

Download securenet-plugin

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

killbill-securenet-plugin

Plugin to use SecureNet as a gateway.

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

Kill Bill compatibility

Plugin version Kill Bill version
0.1.y 0.16.z
0.2.y 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 ':securenet:
  :login: "your-login"
  :password: "your-password"' \
     http://127.0.0.1:8080/1.0/kb/tenants/uploadPluginConfig/killbill-securenet

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

:securenet:
  :test: false

Usage

Note: integration with PayOS.js hasn't been done yet.

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-securenet",
       "pluginInfo": {
         "properties": [
           {
             "key": "ccFirstName",
             "value": "John"
           },
           {
             "key": "ccLastName",
             "value": "Doe"
           },
           {
             "key": "ccExpirationMonth",
             "value": 12
           },
           {
             "key": "ccExpirationYear",
             "value": 2017
           },
           {
             "key": "ccNumber",
             "value": "4111111111111111"
           }
         ]
       }
     }' \
     "http://127.0.0.1:8080/1.0/kb/accounts/2a55045a-ce1d-4344-942d-b825536328f9/paymentMethods?isDefault=true&pluginProperty=skip_gw=true"
org.kill-bill.billing.plugin.ruby

Kill Bill

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

Versions

Version
0.2.0
0.1.0