2017 © Pedro Peláez
 

modulargaming-module payment

Payment module for Modular Gaming

image

modulargaming/payment

Payment module for Modular Gaming

  • Friday, August 1, 2014
  • by modulargaming
  • Repository
  • 5 Watchers
  • 1 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Modular Gaming Payment

Payment is a module for Modular Gaming, a modular persistent browser based game framework., (*1)

It adds support for processing payments within Modular Gaming, using the Omnipay Library., (*2)

Supported Gateways

  • PayPal Express Checkout
  • PayPal Recurring Payments (Express Checkout)

Requirements

  • PHP 5.3.3+
  • MySQL
  • Composer (Dependency Manager)

Installation

Payment is installed using composer, simply add it as a dependency to your composer.json file:, (*3)

{
    "require": {
        "modulargaming/payment": "~0.1.0"
    }
}

Rewards

Note: Rewards are only for regular payments NOT Recurring., (*4)

The reward system is driver based, this allows you to define multiple rewards for a single package. Currently only Points are supported, however it is quite easy to implement your own driver., (*5)

class Payment_Reward_Type extends Payment_Reward {

    private $_reward;

    public function __construct($reward)
    {
        $this->_reward = $reward;
    }

    public function reward(Model_User $user)
    {
        // TODO: Write the reward code.
    }

}

Example structure for rewards row in payment_packages table, (*6)

{
   "Points": 200
}

This will give the buyer 200 points., (*7)

For examples, check the current drivers, Payment/Reward., (*8)

The Versions

01/08 2014

dev-master

9999999-dev https://github.com/modulargaming/payment

Payment module for Modular Gaming

  Sources   Download

BSD-3-Clause

The Requires

 

payment modulargaming

01/08 2014

v0.2

0.2.0.0 https://github.com/modulargaming/payment

Payment module for Modular Gaming

  Sources   Download

BSD-3-Clause

The Requires

 

payment modulargaming

07/01 2014

dev-develop

dev-develop https://github.com/modulargaming/payment

Payment module for Modular Gaming

  Sources   Download

BSD-3-Clause

The Requires

 

payment modulargaming

10/10 2013

v0.1.1

0.1.1.0 https://github.com/modulargaming/payment

Payment module for Modular Gaming

  Sources   Download

BSD-3-Clause

The Requires

 

payment modulargaming

19/09 2013

v0.1.0

0.1.0.0 https://github.com/modulargaming/payment

Payment module for Modular Gaming

  Sources   Download

BSD-3-Clause

The Requires

 

payment modulargaming