You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: userguide/tutorials/braintree-plugin.adoc
+109-3Lines changed: 109 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ The https://github.com/killbill/killbill-braintree[Braintree Plugin] is a Kill B
10
10
11
11
== Overview
12
12
13
+
The Braintree plugin allows you to process payments via the Braintree payment gateway. You can create a payment method, make a purchase, and view the transaction details in Kaui.
14
+
13
15
== Plugin Installation
14
16
15
17
You can install the plugin as explained in the https://docs.killbill.io/latest/plugin_installation#_plugin_installation[Plugin Installation Guide].
@@ -21,7 +23,7 @@ For example, to install the plugin via https://github.com/killbill/killbill-clou
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.
26
+
You can also install the plugin via the https://aviate.killbill.io/home[Aviate UI] "Plugin Marketplace" tab. Refer to the <<aviate_integration, Aviate Integration>> section below for more details.
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.
69
+
Alternatively, you can also configure these properties via the https://aviate.killbill.io/home[Aviate UI] "Plugin Configuration" tab. Refer to the <<aviate_integration, Aviate Integration>> section below for more details.
68
70
69
71
// == Kaui Integration TBB
70
72
71
73
[[aviate_integration]]
72
74
== Aviate Integration
73
75
74
-
You can use the https://aviate.killbill.io/home[Aviate UI] to install/configure the plugin. the following demo
76
+
You can use the https://aviate.killbill.io/home[Aviate UI] to install/configure the plugin. Refer to the following demo:
75
77
76
78
++++
77
79
<div>
@@ -83,6 +85,110 @@ You can use the https://aviate.killbill.io/home[Aviate UI] to install/configure
83
85
++++
84
86
85
87
88
+
== Testing the Plugin
89
+
90
+
Once the plugin is installed and configured, you can use it to process payments via the Braintree payment gateway. You can create a payment method, make a purchase, and view the transaction details in Kaui.
91
+
92
+
You can follow the steps given below to test the plugin:
93
+
94
+
1. Ensure that the plugin is installed and configured as explained above.
95
+
96
+
2. https://developer.paypal.com/braintree/articles/control-panel/vault/create[Create a customer] in Braintree with https://developer.paypal.com/braintree/docs/reference/general/testing#valid-card-numbers[test card details]. Save the **Customer ID** generated for future reference (it should be something like **620594365**).
97
+
98
+
3. https://apidocs.killbill.io/account#create-an-account[Create] a Kill Bill account. Save the **accountId** for further use.
99
+
100
+
4. https://apidocs.killbill.io/account#add-a-payment-method[Create] a payment method in Kill Bill using a https://developer.paypal.com/braintree/docs/reference/general/testing#payment-method-nonces[fake valid nonce] and the braintree customer id as follows:
5. Create an https://apidocs.killbill.io/invoice#create-external-charge-s[external charge] on the account.
130
+
131
+
6. Use the `paymentMethodId` to https://apidocs.killbill.io/invoice#trigger-an-invoice-run[trigger payment] (required only if the `paymentMethodId` is not set as the default payment).
132
+
133
+
## Integration
134
+
135
+
In order to use the Braintree plugin, follow the steps given below:
136
+
137
+
1. Ensure that the plugin is installed and configured as explained above.
138
+
139
+
2. Invoke the `BraintreeTokenServlet` to obtain a token:
3. Use the https://developer.paypal.com/braintree/docs/start/drop-in[Braintree Drop-in] implementation to gather the customer's payment details and obtain a payment nonce.
156
+
157
+
4. https://developer.paypal.com/braintree/docs/guides/customers[Create a customer] in Braintree. Save the **Customer ID** generated for future reference (it should be something like **620594365**).
158
+
159
+
5. https://apidocs.killbill.io/account#create-an-account[Create] a Kill Bill account. Save the **accountId** for further use.
160
+
161
+
6. https://apidocs.killbill.io/account#add-a-payment-method[Create] a payment method in Kill Bill using the nonce and the braintree customer id as follows:
0 commit comments