Download the PHP package studiobonito/silverstripe-omnipayable without Composer
On this page you can find all versions of the php package studiobonito/silverstripe-omnipayable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download studiobonito/silverstripe-omnipayable
More information about studiobonito/silverstripe-omnipayable
Files in studiobonito/silverstripe-omnipayable
Package silverstripe-omnipayable
Short Description The Omnipayable module adds support for the Omnipay library.
License BSD-2-Clause
Informations about the package silverstripe-omnipayable
WARNING: Module depreciated
This SilverStripe module is depreciated please consider using the
silverstripe-omnipay
module instead.
Omnipayable Module
Overview
The Omnipayable module is designed to provide simple payment forms for SilverStripe using Omnipay.
The following forms are currently implemented:
- GoCardless
- PayPal Express Checkout
- PayPal Payments Pro
- Stripe
Requirements
- SilverStripe 3.0 or newer.
- Omnipay 0.8 or newer.
Installation Instructions
Composer
The Omnipayable module can be installed via Composer.
To do so, simply add it to the composer.json
file in the root of your SilverStripe installation:
Then run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Manual
Copy the 'omnipayable' folder to the root of your SilverStripe installation.
Usage Overview
There is a factory method provided to with form creation. This will create the correct form for the currently configured gateway:
Alternatively you can create the form directly:
Once the form is created you can set the amount that will be charged:
Complete Example
When adding the form to a Controller
remember to add the forms name to the $allowed_actions
array.
Payment Form Fields
The base form provides form fields for all of the currently supported properties of the Omnipay CreditCard
object.
Each gateway specific form is intended to show only the relevant subset of fields that apply to that gateway.
The following is a list of all the base form fields and their type:
Personal Details FieldGroup
- FirstName
TextField
- LastName
TextField
- Company
TextField
- Email
EmailField
Card Details FieldGroup
- Number
CreditCardField
- Cvv
TextField
- ExpiryMonth
DropdownField
- ExpiryYear
DropdownField
- StartMonth
DropdownField
- StartYear
DropdownField
- IssueNumber
TextField
- Type
DropdownField
Billing Address FieldGroup
- BillingAddress1
TextField
- BillingAddress2
TextField
- BillingCity
TextField
- BillingPostcode
TextField
- BillingState
TextField
- BillingCountry
DropdownField
- BillingPhone
PhoneField
Shipping Address FieldGroup
- ShippingAddress1
TextField
- ShippingAddress2
TextField
- ShippingCity
TextField
- ShippingPostcode
TextField
- ShippingState
TextField
- ShippingCountry
DropdownField
- ShippingPhone
PhoneField