-
-
Notifications
You must be signed in to change notification settings - Fork 88
Braintree plugin documentation #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| = Braintree Plugin | ||
|
|
||
| The https://github.com/killbill/killbill-braintree[Braintree Plugin] is a Kill Bill payment plugin for the https://www.braintreepayments.com/[Braintree payment gateway]. | ||
|
|
||
| == Prerequisites | ||
|
|
||
| * Ensure that you have Kill Bill, Kaui, and the database set up as explained in the https://docs.killbill.io/latest/getting_started.html[__Getting Started Guide__]. | ||
| * Ensure that you have https://curl.haxx.se/[_cURL_] installed. If you are on Windows, we recommend that you use https://git-scm.com/download/win[_Git Bash_] to run the `cURL` commands. | ||
| * Ensure that you have a Braintree account. A Braintree sandbox account may be used for testing purposes. You can sign up for a free account at https://www.braintreepayments.com/sandbox[https://www.braintreepayments.com/sandbox]. | ||
|
|
||
| == Overview | ||
|
|
||
| == Plugin Installation | ||
|
|
||
| You can install the plugin as explained in the https://docs.killbill.io/latest/plugin_installation#_plugin_installation[Plugin Installation Guide]. | ||
|
|
||
| For example, to install the plugin via https://github.com/killbill/killbill-cloud/blob/master/kpm[KPM], you can run the following command: | ||
|
|
||
| [source,bash] | ||
| ---- | ||
| kpm install_java_plugin braintree-plugin --destination=<path_to_install_plugin> | ||
| ---- | ||
|
|
||
| You can also install the plugin via the https://aviate.killbill.io/home[Aviate UI] via the "Plugin Marketplace" tab. Refer to the <<aviate_integration, Aviate Integration>> section below for more details. | ||
|
|
||
| == Database Configuration | ||
|
|
||
| The Braintree plugin requires some additional database tables. To create these tables, please follow the steps given below: | ||
|
|
||
| . Connect to the Kill Bill database. | ||
|
|
||
| . Run the https://github.com/killbill/killbill-braintree/blob/master/src/main/resources/ddl.sql[Braintree Plugin DDL]. | ||
|
|
||
| == Plugin Configuration | ||
|
|
||
| The Braintree plugin requires the following properties: | ||
|
|
||
| [options="header",cols="1,1,1,1"] | ||
| |=== | ||
| |Property Name |Description | Required|Default Value | ||
| //---------------------- | ||
| |org.killbill.billing.plugin.braintree.btEnvironment| The Braintree environment to use. |Yes|-| | ||
| org.killbill.billing.plugin.braintree.btMerchantId |Unique Braintree merchant identifier that tells the plugin which merchant account to process transactions under. | Yes | - | ||
| |org.killbill.billing.plugin.braintree.btPublicKey |The public API key from your Braintree account used to authenticate API calls.| Yes |- | ||
| |org.killbill.billing.plugin.braintree.btPrivateKey|The private API key from your Braintree account used alongside the public key to authenticate API calls.|No | DEFAULT | ||
|
|
||
| |=== | ||
|
|
||
| These properties can be configured globally via the https://docs.killbill.io/latest/userguide_configuration.html#global_configuration_properties[Kill Bill Configuration File] or on a per-tenant basis via the https://apidocs.killbill.io/tenant#add-a-per-tenant-configuration-for-a-plugin[Add a per-tenant configuration for a plugin] endpoint. For example, to configure these properties for the `bob/lazar` tenant, you can use the following curl: | ||
|
|
||
| [source, bash] | ||
| ---- | ||
| 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 'org.killbill.billing.plugin.braintree.btEnvironment=sandbox | ||
| org.killbill.billing.plugin.braintree.btMerchantId=xxx | ||
| org.killbill.billing.plugin.braintree.btPublicKey=xxx | ||
| org.killbill.billing.plugin.braintree.btPrivateKey=xxx' \ | ||
| http://127.0.0.1:8080/1.0/kb/tenants/uploadPluginConfig/killbill-braintree | ||
| ---- | ||
|
|
||
| Alternative, you can also configure these properties via the https://aviate.killbill.io/home[Aviate UI] by navigating to the "Plugin Configuration" tab. Refer to the <<aviate_integration, Aviate Integration>> section below for more details. | ||
|
||
|
|
||
| // == Kaui Integration TBB | ||
|
|
||
| == Aviate Integration | ||
|
|
||
| You can use the https://aviate.killbill.io/home[Aviate UI] to install/configure the plugin. the following demo | ||
|
|
||
| ++++ | ||
| <div> | ||
| <script async src="https://js.storylane.io/js/v2/storylane.js"></script> | ||
| <div class="sl-embed" style="position:relative;padding-bottom:calc(49.85% + 25px);width:100%;height:0;transform:scale(1)"> | ||
| <iframe loading="lazy" class="sl-demo" src="https://killbill.storylane.io/demo/8hxhjuek5f2o?embed=inline" name="sl-embed" allow="fullscreen" allowfullscreen style="position:absolute;top:0;left:0;width:100%!important;height:100%!important;border:1px solid rgba(63,95,172,0.35);box-shadow: 0px 0px 18px rgba(26, 19, 72, 0.15);border-radius:10px;box-sizing:border-box;"></iframe> | ||
| </div> | ||
| </div> | ||
| ++++ | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.