Download the PHP package alext/silverstripe-btpayment without Composer
On this page you can find all versions of the php package alext/silverstripe-btpayment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alext/silverstripe-btpayment
More information about alext/silverstripe-btpayment
Files in alext/silverstripe-btpayment
Package silverstripe-btpayment
Short Description Integrate Braintree payment form in Dropin UI.
License proprietary
Homepage http://github.com/conqtc/btpayment
Informations about the package silverstripe-btpayment
silverstripe-btpayment
A SilverStripe module to integrate Braintree payment forms in Dropin UI.
Currently there're following forms:
- Make a payment form:
- Add/remove payment methods in the vault:
When there's no payment method in the vault, the form allows user to add a new payment method:
Both forms (v0.6) allow user to authorize paypal:
- Display previous transactions simple list
Support SilverStripe 4.
Installation
Use composer
to install/update:
Braintree settings
After installing and rebuilding (\dev\build?flush
) go to site admin - Settings and input Braintree settings, see screenshot below:
SilverStripe member and Braintree customer
This module extends SilverStripe member's data to create a Braintree customer for each member and store its customer id in database.
Braintree customer will be created on the fly at the first time using the forms if there's no customer id found.
Usage
- To use the make payment form, use
$BTPaymentForm
in your template of the page.
Example:
The page controller must extend BraintreePageController
- To use the payment methods management form, use
$BTEditPaymentForm($amount)
in your template, if $amount is not specified 0 (zero) will be put in place.
Example (in case we process the payment in the separate page, set the total amount on the fly):
Example if we want to change the total amount on the fly:
The page controller must extend BraintreeEditPageController
- To use the previous transactions form, use
BTPreviousTransactionsForm
in your template.
Example:
The page controller must extend BraintreePageController
.
To manually handle the transaction yourself, override function processPayment($session, $form, $nonce, $amount)
to do your own transaction, for example: