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

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/twyple/twyple-sdk-php

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

This package is auto-updated.

Last update: 2025-12-12 07:38:17 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);

?>