is extending functionality of Omnipay Common and providing shared functionality for some Omnipay drivers.
- PSR-7 Message sending using Guzzle client currently (June 2015) used by Omnipay Common
- Widget interface and basic functionality
- Support for widget-based workflow (for APIs providing at some point displayable widget or parameter(s) to create it)
- Extended CreditCard class (additional attributes)
- Extended Item (additional attributes) and ItemBag classes
- Address parser helper
- This is a beta version.
Add dependency on this package to your Omnipay driver composer.json.
You might need to add also dependencies to packages psr/http-message and development version of egeloen/http-adapter both to your driver and your project, if you are using protected method HttpMessageSendingTrait::sendHttpMessage() (and add recommendation for others to do so in your driver's README.md):
"require": {
"subscribo/omnipay-subscribo-shared": "^0.3.0",
"egeloen/http-adapter": "^0.8@dev",
"psr/http-message": "^1.0"
}
You can extend abstract classes provided by this package, use CreditCard and/or Item and ItemBag classes provided by this package, use Widget base functionality provided by this package, use trait HttpMessageSendingTrait (for PSR-7 http message sending) use helper GuzzleClientHelper (for httpClient logging using PSR-3 logger) or use helper AddressParser (for parsing of first line of address)
For contribution guidelines see CONTRIBUTING.md
Package Subscribo OmnipaySubscriboShared is published under MIT License