webvariants/payments

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

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

Installs: 663

Dependents: 3

Suggesters: 0

Security: 0

Type:sallycms-addon

2.0.x-dev 2016-06-26 22:22 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);