webvariants / payments
An addOn for SallyCMS, adding a simple payment API for shops
dev-default / 1.x-dev
2014-04-14 15:12 UTC
Requires
- php: >=5.3.0
- guzzle/http: ~3.7@stable
- sallycms/composer-installer: ~1.1@stable
- sallycms/sallycms: >=0.9,<0.10
- umpirsky/country-list: ~1.0@stable
- webvariants/developer-utils: ~6.0
- webvariants/global-settings: ~6.0
- webvariants/metainfo: ~6.0
Requires (Dev)
- phpunit/dbunit: 1.2.*@stable
- phpunit/phpunit: 3.7.*@stable
This package is auto-updated.
Last update: 2020-08-15 17:52:43 UTC
README
SallyCMS Addon enabling the acceptance of simple payments through to the integration of extensive online shops.
Cart
-
Cart addresses (billing and shipping)
Cart addresses can either be created with an associative array containing the
address data or with a system user model. While creating addresses with a system
users model developers should setup the address mapping inside config.yml
to
ensures the users meta infos are mapped correctly.
::::php
<?php
// From an associative array
$data = array('firstname' => 'John', 'lastname' => 'Smith');
$address = Payments::getAddress($data);
// From a system user model
$user = \sly_Util_User::getCurrentUser();
$address = Payments::getAddress($user);