承接 modulargaming/payment 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

modulargaming/payment

Composer 安装命令:

composer require modulargaming/payment

包简介

Payment module for Modular Gaming

README 文档

README

Payment is a module for Modular Gaming, a modular persistent browser based game framework.

It adds support for processing payments within Modular Gaming, using the Omnipay Library.

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:

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

Rewards

Note: Rewards are only for regular payments NOT Recurring.

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.

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

{
   "Points": 200
}

This will give the buyer 200 points.

For examples, check the current drivers, Payment/Reward.

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-07-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固