2017 © Pedro Peláez
 

library omnipay-paytm

paytm driver for the Omnipay PHP payment processing library

image

tink/omnipay-paytm

paytm driver for the Omnipay PHP payment processing library

  • Wednesday, May 30, 2018
  • by cyub
  • Repository
  • 0 Watchers
  • 0 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 62 % Grown

The README.md

Omnipay: Paytm

Paytm driver for the Omnipay PHP payment processing library, (*1)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Paytm support for Omnipay., (*2)

Usage

Begin Transaction

$gateway = Omnipay::create('Paytm_Express');

$gateway->setMid('TRANSS******');
$gateway->setKey('6u*****');
$gateway->setIndustryTypeId('Retail');
$gateway->setChannelId('WEB');
$gateway->setWebSite('WEB_STAGING');
$gateway->setEnvironment('staging');


$params = [
    'orderId' => 'ORDS83028539',
    'CustID' => 'CUST001',
    'amount' => 1
];
$response = $gateway->purchase($params)->send();

$response->redirect();

Transaction Notify

$gateway = Omnipay::create('Paytm_Express');
$gateway->setMid('TRANSS********');
$gateway->setKey('6u*******');

$response = $gateway->completePurchase(['request_params' => $_REQUEST])->send();
if ($response->isPaid()) { // 成功
...
} elseif ($response->isFailure()) { // 失败
...
} else { // 进行中
...
}

Order Query

$gateway = Omnipay::create('Paytm_Express');
$gateway->setMID('TRANSS********');

$response = $gateway->queryOrder(['orderId' => 'xxx'])->send();
if ($response->isPaid()) {
...
} elseif ($response->isFailure()) {
...
} else {
...
}

The Versions

30/05 2018

dev-master

9999999-dev

paytm driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

by caoyubing

30/05 2018

v1.0.1

1.0.1.0

paytm driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

by caoyubing

17/05 2018

dev-dev

dev-dev

paytm driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

by caoyubing

23/04 2018

v1.0.0

1.0.0.0

paytm driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

by caoyubing