webvariants/payments

An addOn for SallyCMS, adding a simple payment API for shops

Installs: 663

Dependents: 3

Suggesters: 0

Security: 0

Type:sallycms-addon

dev-default / 1.x-dev 2014-04-14 15:12 UTC

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);