twyple/twyple-sdk-php

There is no license information available for the latest version (v1.2) of this package.

Simple php class to handle payments for India Payment Gateways

v1.2 2020-05-10 18:48 UTC

This package is auto-updated.

Last update: 2025-06-12 06:35:41 UTC


README

Installation

composer require twyple/twyple-sdk-php

Getting started

Create an endpoint and initialize the package. All you have to do is read the input data and call the Handler.

Cashfree

http://your/server/route.php

<?php
   require 'vendor/autoload.php';
   use Twyple\Cashfree\Payments;
   $inputJSON = json_decode(file_get_contents('php://input'), true); //$inputJSON = $_POST;

   //cashfree credentials. You can get it from merchant dashboard
   $appId = "cashfreeAppID";
   $secretKey = "cashfreeAppSecret";

   $cashfree = new Payments($appId, $secretKey);

   $handlerRes = $cashfree->Handler($inputJSON);
   echo json_encode($handlerRes);

?>