GithubHelp home page GithubHelp logo

fossabot / paytmpaymentsgatewayphp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 102 KB

Paytm Payments Gateway for Custom Merchant Payments using PHP

Home Page: https://paytmpg.herokuapp.com

License: GNU General Public License v3.0

PHP 100.00%

paytmpaymentsgatewayphp's Introduction

Paytm Payments Gateway in PHP

Information

This product is extracted and redesigned from Paytm Source Code of Web Payments Gateway. The Software can be used by Individual Merchants to accept payments using their own website. While we suggest you to use Paytm Payment Links for transactions. This software is free and can be modified to fit Business needs.

Usage

  • Click on Deploy Button Below.
  • Open https://dashboard.paytm.com/next/apikeys
  • Copy Required fields and Paste into Variables Required at Heroku.
  • Deploy.
  • No need of providing server address as the script pickups the host name where it is running.

Custom Server

  • For Deploying to Shared or Dedicated Hosting (with PHP Support).

  • Open lib/config.php and Replace with this code.

    <?php
    /*
    - Use PAYTM_ENVIRONMENT as 'PROD' if you wanted to do transaction in production environment else 'TEST' for doing transaction in testing environment.
    - Change the value of PAYTM_MERCHANT_KEY constant with details received from Paytm.
    - Change the value of PAYTM_MERCHANT_MID constant with details received from Paytm.
    - Change the value of PAYTM_MERCHANT_WEBSITE constant with details received from Paytm.
    - Above details will be different for testing and production environment.
    */
    define('PAYTM_ENVIRONMENT', 'TEST'); // PROD
    define('PAYTM_MERCHANT_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxx'); //Change this constant's value with Merchant key received from Paytm.
    define('PAYTM_MERCHANT_MID', 'xxxxxxxxxxxxxxxxxxxxxxx'); //Change this constant's value with MID (Merchant ID) received from Paytm.
    define('PAYTM_MERCHANT_WEBSITE', 'xxxxxxx'); //Change this constant's value with Website name received from Paytm.
    $PAYTM_STATUS_QUERY_NEW_URL = 'https://securegw-stage.paytm.in/merchant-status/getTxnStatus';
    $PAYTM_TXN_URL              = 'https://securegw-stage.paytm.in/theia/processTransaction';
    if (PAYTM_ENVIRONMENT == 'PROD') {
        $PAYTM_STATUS_QUERY_NEW_URL = 'https://securegw.paytm.in/merchant-status/getTxnStatus';
        $PAYTM_TXN_URL              = 'https://securegw.paytm.in/theia/processTransaction';
    }
    define('PAYTM_REFUND_URL', '');
    define('PAYTM_STATUS_QUERY_URL', $PAYTM_STATUS_QUERY_NEW_URL);
    define('PAYTM_STATUS_QUERY_NEW_URL', $PAYTM_STATUS_QUERY_NEW_URL);
    define('PAYTM_TXN_URL', $PAYTM_TXN_URL);
    ?>
    
  • Replace TEST with PROD for Production Use (updates url's automatically)

  • Merchant Key and Merchant MID with Required Data from https://dashboard.paytm.com/next/apikeys

  • Replace Merchant Website from Paytm Site (Default is WEBSITE)

API KEYS

Deploy to Heroku

Deploy FOSSA Status

Original Source is available at Paytm Github

License

FOSSA Status

paytmpaymentsgatewayphp's People

Contributors

imgbotapp avatar fossabot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.