2017 © Pedro Peláez
 

library expresscheckout-php-sdk

Express Checkout SDK for PHP allows easy integration with Juspay's EC payments as a service platform

image

juspay/expresscheckout-php-sdk

Express Checkout SDK for PHP allows easy integration with Juspay's EC payments as a service platform

  • Friday, March 3, 2017
  • by juspay
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1,372 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 21 % Grown

The README.md

Juspay PHP Client Library


The Juspay ExpressCheckout PHP SDK makes it easier for merchants to integrate the express-checkout APIs in their product. This SDK is distributed using composer. To add the SDK to your project, add the following code to your composer.json:, (*1)

#!python

"require" : {
    "juspay/expresscheckout-php-sdk" : "1.0.3"
}

This package requires a minimum-stability of stable. Set the minimum-stability in your composer.json accordingly., (*2)

Setting up the SDK for use.

By default SDK is initialised for Juspay production account., (*3)

To setup PHP SDK for production account with default timeouts, use following code:, (*4)

#!python

JuspayEnvironment::init()
->withApiKey("your_api_key")

To setup PHP SDK for sandbox account with default timeouts, use following code:, (*5)

#!python

JuspayEnvironment::init()
->withApiKey("yourApiKey")
->withBaseUrl(JuspayEnvironment::SANDBOX_BASE_URL)

To setup PHP SDK for production account with custom timeouts, use following code:, (*6)

#!python

JuspayEnvironment::init()
->withApiKey("yourApiKey")
->withConnectTimeout(connectTimeout)
->withReadTimeout(readTimeout);

To setup PHP SDK for sandbox account with custom timeouts, use following code:, (*7)

#!python

JuspayEnvironment::init()
->withApiKey("yourApiKey")
->withBaseUrl(JuspayEnvironment::SANDBOX_BASE_URL)
->withConnectTimeout(connectTimeout)
->withReadTimeout(readTimeout);

Using SDK

The input to all methods in SDK is an associative array and most of the methods will return the object of the corresponding class., (*8)

Example:

Adding a card to Juspay Locker:, (*9)

#!php

$params = array ();
$params ['merchant_id'] = "merchantId";
$params ['customer_id'] = "customerId";
$params ['customer_email'] = "support@juspay.in";
$params ['card_number'] = "4111111111111111";
$params ['card_exp_year'] = "2018";
$params ['card_exp_month'] = "07";
$params ['name_on_card'] = "Juspay Technologies";
$params ['nickname'] = "ICICI VISA";
$card = Card::create ( $params );

The Versions

03/03 2017

dev-version_1_0_3

dev-version_1_0_3 https://www.juspay.in

Express Checkout SDK for PHP allows easy integration with Juspay's EC payments as a service platform

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *

 

The Development Requires

by Ankur Gupta

api payment gateway payment processing expresscheckout juspay

03/03 2017

dev-master

9999999-dev https://www.juspay.in

Express Checkout SDK for PHP allows easy integration with Juspay's EC payments as a service platform

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *

 

The Development Requires

by Ankur Gupta

api payment gateway payment processing expresscheckout juspay

03/03 2017

v1.0.3

1.0.3.0 https://www.juspay.in

Express Checkout SDK for PHP allows easy integration with Juspay's EC payments as a service platform

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *

 

The Development Requires

by Ankur Gupta

api payment gateway payment processing expresscheckout juspay

11/11 2016

dev-payment_links

dev-payment_links https://www.juspay.in

Express Checkout SDK for PHP allows easy integration with Juspay's EC payments as a service platform

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *

 

The Development Requires

by Ankur Gupta

api payment gateway payment processing expresscheckout juspay

11/11 2016

v1.0.2

1.0.2.0 https://www.juspay.in

Express Checkout SDK for PHP allows easy integration with Juspay's EC payments as a service platform

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *

 

The Development Requires

by Ankur Gupta

api payment gateway payment processing expresscheckout juspay

30/08 2016

v1.0.1

1.0.1.0 https://www.juspay.in

Express Checkout SDK for PHP allows easy integration with Juspay's EC payments as a service platform

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *

 

The Development Requires

by Ankur Gupta

api payment gateway payment processing expresscheckout juspay