PHP Classes
elePHPant
Icontem

vgniter: Voguepay payment library for CodeIgniter

Recommend this page to a friend!
  Info   View files Documentation   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-11-07 (13 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 64 All time: 8,982 This week: 623Up
Version License PHP version Categories
vgniter 1.0.2MIT/X Consortium ...5PHP 5, E-Commerce, Libraries, Web ser...
Description Author

This package is a Voguepay payment library for CodeIgniter.

It can generate HTML for form buttons to lead the user to pay for an order in Voguepay.

It can also send HTTP requests to the Voguepay API Web server to fetch the approval status of a payment, withdraw an amount to a bank account, send payments, and create user accounts.

  Performance   Level  
Name: jimie josh <contact>
Classes: 2 packages by
Country: Nigeria Nigeria
Age: 25
All time rank: 407331 in Nigeria Nigeria
Week rank: 1063 Up14 in Nigeria Nigeria Up

Details

Vgniter - Codeigniter -Voguepay Payment Library

library to integrate Voguepay Payment Gateway API on codeigniter

Class Features

  • Pay with voguepay!
  • Access comand api to create user, pay, fetch e.t.c
  • Add auto generated items
  • Light weight
  • Support country and currency
  • Need no instal and has no database, just copy files to the right folder
  • Can be integrated to any Codeigniter application
  • Tested with codeigniter version 3.0 but backward compactible with version 2.0
  • Compatible with PHP 5.0 and later
  • Much more!

Why you might need it

To manually integrate VoguePay into your website. When you're done, you will have added a VoguePay button and supporting code to your website so that customers can click to place orders through VoguePay.

License

This software is distributed under the MIT license. Please read LICENSE.txt for information on the software availability and distribution.

Installation & loading

Drop the provided files into the CodeIgniter project
Configure your vougepay details inside the application/config/vgniter.php file. refer to http://voguepay.com/developer
Modify the controller example supplied (application/controller/vgniter.php) to fit your needs


A Simple Example

To use Vgniter load the library in your controller

  $this->load->library('Vgniter_lib');

To add Initiate the library with

  //voguepay_start( memo , currency, store_id, recurrent, interval, demo);
  $this->vgniter_lib->voguepay_start("BARGAINPROTECT Escrow Payment",'','','','','');
To add items simply use
  //voguepay_add_item( $form, name of item ,  description for the item, price of the item);
  $form = $this->vgniter_lib->voguepay_add_item( $title, $description, $amount);
	Dont forget to close the form variable
	// fuction apends item total, submit button, and closes form
 
  //vogniter_close( &$form , image, 'make_payment' , butcolor )
  $outputform = $this->vgniter_lib->vogniter_close( true,  'make_payment' , 'blue');
  echo $outputform;

	View sample controller code below
<?php
 	
class Vgniter extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		$this->load->library('Vgniter_lib');  
		 
	}
	
	function index()
	{

	// create form with default values set in config i.e merchant_ref, merchant_id, e.t.c
	// and also add <form method='POST' action='https://voguepay.com/pay/'>
	$this->vgniter_lib->voguepay_start("Secure Payment by Voguepay",'','','','','');
	
	// function to add item you want to sell to form including item name, item descriptio
	// and item price, it will automatically generate total for all items
	$this->vgniter_lib->voguepay_add_item( 'Face Cap',  'beautiful facecap for use', 1000 );
	$this->vgniter_lib->voguepay_add_item(  'Laban T-shirt', 'Labeled T-shirts', 4500 ); 
	$finalform = $this->vgniter_lib->vogniter_close( true,  'make_payment' , 'blue');
	
		echo $finalform;
	}
	
}	
	

You'll find it easy to implement.

That's it. You should now be ready to use Vgniter!

Localization

Vgniter defaults to English

Screenshots  
  • vgniterdemo
  Files folder image Files  
File Role Description
Files folder imageconfig (1 file)
Files folder imagecontroller (1 file)
Files folder imagelibraries (1 file)
Accessible without login Plain text file license.txt Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  config  
File Role Description
  Plain text file vgniter.php Class Class source

  Files folder image Files  /  controller  
File Role Description
  Plain text file vgniter.php Class Class source

  Files folder image Files  /  libraries  
File Role Description
  Plain text file Vgniter_lib.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 83%
Total:64
This week:0
All time:8,982
This week:623Up