A PHP package to simplify using DPO Payment API in your application.

Related tags

E-commerce dpo-php
Overview

DPO (Direct Pay Online) PHP Package

The best DPO php package, simple Ever

Build Status

This is the package that will help you add DPO Payment API to your PHP Application, We are open to contribution and support to make it better.

Features

  • Create Payment Token (Initiate order at DPO servers)
  • Verify Payment Token (Check Transaction status)
  • Make Direct payment(Redirects order direct to DPO payment page)
  • Fetch Payment Token
  • Database migrations to save transaction details
  • Much easy to use
  • Constantly updated

How It works

  1. Create payment token
  2. Verify token
  3. Redirect to DPO payment page
  4. Fetch response
  5. Done

The package does all this for you behind the scenes đŸ˜‚

Basic Usage Example.

"TZS", 'customerFirstName'=> "Novath", 'customerLastName'=> "Thomas", 'customerAddress'=> "Tanzania", 'customerCity'=>"Dodoma", 'customerPhone'=> "0752771650", 'customerEmail'=> "[email protected]", 'companyRef'=> "34TESTREFF" ]; //Now make payment $dpo->directPayment($data); //Its done! Simple right!đŸ˜‚ ">
 
use Zepson\Dpo\Dpo;
........

  $dpo = new Dpo();
   $order = [
            'paymentAmount'=>"10000",
            'paymentCurrency'=> "TZS",
            'customerFirstName'=> "Novath",
            'customerLastName'=> "Thomas",
            'customerAddress'=> "Tanzania",
             'customerCity'=>"Dodoma",
            'customerPhone'=> "0752771650",
            'customerEmail'=> "[email protected]",
            'companyRef'=> "34TESTREFF"
        ];
    //Now make  payment
    $dpo->directPayment($data);
    //Its done!  Simple right!đŸ˜‚

Installation

Install the package Via Composer

    composer require zepson/dpo-php

USAGE

  • create array of your order which match parrameters in the following exaple
"TZS", 'customerFirstName'=> "Novath", 'customerLastName'=> "Thomas", 'customerAddress'=> "Tanzania", 'customerCity'=>"Dodoma", 'customerPhone'=> "0752771650", 'customerEmail'=> "[email protected]", 'companyRef'=> "34TESTREFF" ]; ">
$order = [
            'paymentAmount'=>"10000",
            'paymentCurrency'=> "TZS",
            'customerFirstName'=> "Novath",
            'customerLastName'=> "Thomas",
            'customerAddress'=> "Tanzania",
             'customerCity'=>"Dodoma",
            'customerPhone'=> "0752771650",
            'customerEmail'=> "[email protected]",
            'companyRef'=> "34TESTREFF"
        ];
  • Now you can choose to make direct payment or createToken First and then make payment
  • Starting with Direct Payment
   $dpo = new Dpo;
   return $dpo->directPayment($data); //this will redirect user to DPO Payment page
  • If you preffer to save details then this is the ideal step to follow [Generate Token, Make payment]
  • Get Token
      $token = $dpo->createToken($data); //return array of response with transaction code
      //you can save or do what ever you want with the response
  • Get payment Url
    $dpo->getPaymentUrl($token);
  • Redirect User to payment page
   return Redirect::to($payment_url);

As [Novath Thomas] always says

There is a huge difference between sysem security and complications, Complication hurts, API should'nt be complicated Thats one of the primary AIM of the introduction of APIs

We would like more contributions to make the package more secure and readable.

License

MIT

You might also like...
QPay Moodle payment gateway plugin

QPay Moodle payment gateway plugin The plugin allows a site to connect to QPay. This plugin was developed by Smotana thanks to funding from Aspire Edu

Adds a new report to the WooCommerce analytics section about used payment methods.

Payment Methods Report for WooCommerce This is an extension to WooCommerce Analytics that will display a new report on the usage of configured payment

Mawthouq Payment is an open source project by Mawthouq

mawthouqpay Welcome to the mawthouqpay ! Mawthouq Payment is an open source project by the first platform Mawthouq that works in Algeria to develop th

Metamask & web3js Ethereum payment method extenstion for Magento 2 without any third party gateways
Metamask & web3js Ethereum payment method extenstion for Magento 2 without any third party gateways

CurrencyPrecision Magento 2 Extension Metamask Ethereum payment method module for Magento 2 Table of contents Description Feature Installation Compose

Prestashop module for Orange Money web payment in Central Africa
Prestashop module for Orange Money web payment in Central Africa

PrestaShop payment module which allow to add African (Cameroon, Cote D'Ivoire etc...) Orange Money payment method on our website

E-commerce web application using php routing
E-commerce web application using php routing

E-commerce Website E-commerce web application built using php routing. Instead of relying on the web server to map the request path to a file, all req

Zen Cart® is a full-function e-commerce application for your website.
Zen Cart® is a full-function e-commerce application for your website.

Zen Cart® - The Art of E-Commerce Zen Cart® was the first Open Source e-Commerce web application to be fully PA-DSS Certified. Zen Cart® v1.5.8 is an

An E-Commerce package for Laravel with Grafite CMS. Take control of your content and how you sell it! Products, subscriptions, shipping, downloading and more!

Grafite Commerce Grafite has archived this project and no longer supports or develops its code. We recommend using only as a source of ideas for your

Begining of an e-commerce website using PHP and the MVC Pattern

Begining of an e-commerce website using PHP and the MVC Pattern

Releases(1.0.0)
Owner
Zepson Technologies
Supporting the developers community
Zepson Technologies
Plugin for Woocommerce that enables Visanet's Cybersource payment gateway as a payment method in your website checkout

Plugin for Woocommerce that enables Visanet's Cybersource payment gateway as a payment method in your website checkout

tipi(code) 2 Mar 8, 2022
PHP payment library to easily integrate Baltic banklinks (supports old and new iPizza protocol), E-commerce gateaway (Estcard, Nets Estonia), Liisi Payment Link and Pocopay.

PHP Payment library PHP payment library to easily integrate Baltic banklinks, E-commerce gateaway (Estcard, Nets Estonia), Liizi Payment Link and Poco

Rene Korss 34 Apr 27, 2022
The Laravel eCommerce Mollie Payment Gateway allows the merchants to integrate Mollie payment gateway to their bagisto Store.

The Laravel eCommerce Mollie Payment Gateway allows the merchants to integrate Mollie payment gateway to their bagisto Store.

Bagisto 2 May 31, 2022
Sharkpay is a system to provide a full order/payment eco-system for your project.

sharkpay sharkpay is a PHP library which aims to provide a full order/payment eco-system for your projects. A form of plug-in & ready to go for E-Comm

Dominic Poppe 2 Jan 6, 2022
A framework agnostic, multi-gateway payment processing library for PHP 5.6+

Omnipay An easy to use, consistent payment processing library for PHP Omnipay is a payment processing library for PHP. It has been designed based on i

The League of Extraordinary Packages 5.7k Jan 4, 2023
PHP 7+ Payment processing library. It offers everything you need to work with payments: Credit card & offsite purchasing, subscriptions, payouts etc. - provided by Forma-Pro

Supporting Payum Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our

Payum 1.7k Jan 5, 2023
Cardano Mercury Payment Gateway for WooCommerce

Cardano Mercury for WooCommerce Simple, reliable plugin to accept Cardano (Ada) payments for goods and services in WooCommerce. Version: 1.0 Tags: woo

null 25 Aug 3, 2022
stripe payment

CodeIgniter 4 Application Starter What is CodeIgniter? CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure. More in

aminxs 3 Jul 29, 2021
Binance Smart Chain - BNB Payment Gateway

BSC Pay (Simple BNB Payment Gateway) I like to use Binance Smart Chain, do you? You can use my simple payment gateway if you need to get paid with BSC

null 18 Dec 19, 2022
Payu payment gateway for bagisto laravel ecommerce open source platform

Bagisto Payu Payment Gateway Payu is a popular payment gateway in india. This package provides a additional strong help for the user to use the payu p

Saju G 3 Dec 14, 2021