定制 perfectmak/paystack-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

perfectmak/paystack-php

Composer 安装命令:

composer require perfectmak/paystack-php

包简介

Paystack Library for PHP

README 文档

README

Build Status

Paystack PHP is a library for using the Paystack API from PHP.

While there are other PHP libraries for Paystack, this library is designed to make it less cumbersome to implement a payment flow on the Paystack payment platform.

Installation

To install using composer

composer install perfectmak/paystack-php

Usage

First you initialize the library with your secret key

\Paystack\Paystack::init('__secret_key_here__');

Transaction

Initialize a transaction

    $payment = \Paystack\Transaction::initialize([
        'email' => 'jame@gosling.com',
        'amount' => '3000'
    ]);

Customer

Create Customer

    $customer = \Paystack\Customer::create([
        'email' => 'google@gosling.com',
        'first_name' => 'Perfect',
        'last_name' => 'Makanju',
        'phone' => 'xxxxxxx'
    ]);

    echo 'Customer\'s first name is: '.$customer->first_name;

Todo

This library is far from complete and not yet stable. So I don't advice using it yet.

  • Finish up all the resources
  • Tests for each Resource
  • Fix travis build script

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-22