2017 © Pedro Peláez
 

cakephp-plugin cakephp-propay

CakePHP 2.x wrapper plugin for ProPay API services. Uses auto generated WSDL.

image

clawsonm/cakephp-propay

CakePHP 2.x wrapper plugin for ProPay API services. Uses auto generated WSDL.

  • Monday, August 25, 2014
  • by clawsonm
  • Repository
  • 1 Watchers
  • 3 Stars
  • 442 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Build Status Coverage Status Total Downloads Latest Stable Version, (*1)

cakephp-propay

wrapper for propay SOAP service in cakephp. Source WSDL is located at http://protectpay.propay.com/API/SPS.svc?wsdl. However to test your implementation you must use their test service located at http://protectpaytest.propay.com/api/sps.svc?wsdl, (*2)

Installation

Using Composer

Add the plugin to your project's composer.json - something like this:, (*3)

  {
    "require": {
      "clawsonm/cakephp-propay": "dev-master"
    }
  }

Because this plugin has the type cakephp-plugin set in its own composer.json, Composer will install it inside your /Plugins directory, rather than in the usual vendors file. It is recommended that you add /Plugins/ProPay to your .gitignore file. (Why? read this.), (*4)

You must also generate the SOAP Client classes, (*5)

path/to/plugin/setup.sh

or specify a path as the first parameter e.g., (*6)

Plugin/ProPay/setup.sh Plugin/ProPay/generated

NOTE: setup.sh uses the production WSDL URL. It assumes that you will specify the correct URL, test or production in your code, see below., (*7)

Non Composer

You must generate the SOAP client with wsdl2phpgenerator from http://github.com/wsdl2phpgenerator/wsdl2phpgenerator. If you use Composer it should already be downloaded by composer. Place the generated code in generated/., (*8)

e.g. Run:, (*9)

./vender/bin/wsdl2php -i http://protectpay.propay.com/API/SPS.svc?wsdl -o generated/

./vender/bin/wsdl2php -i http://protectpaytest.propay.com/api/sps.svc?wsdl -o generated/

Configuration

Please bootstrap the plugin when you load it. e.g.:, (*10)

CakePlugin::load('ProPay', array('bootstrap' => true));

ProPay.wsdlUrl

This is the WSDL URL used by the SOAP client to determine the correct URL to communicate with., (*11)

ProPay.generatedLib

This allows you to set a path to the generated SOAP client files for the autoloader (which is loaded in the plugin's bootstrap) to use., (*12)

ProPay.authenticationToken

This is your ProPay Authentication Token. If you use ProPay you know what this is. Please do not include this in your repo. Put it in a separate file that you exclude from your repo., (*13)

ProPay.billerAccountId

This is your ProPay BillerAccountId. If you use ProPay you know what this is. Please do not include this in your repo. Put it in a separate file that you exclude from your repo., (*14)

License

MIT License, (*15)

See LICENSE file., (*16)

The Versions

25/08 2014

dev-develop

dev-develop http://github.com/clawsonm/cakephp-propay

CakePHP 2.x wrapper plugin for ProPay API services. Uses auto generated WSDL.

  Sources   Download

MIT

The Requires

 

by Michael Clawson

cakephp

25/03 2014

dev-master

9999999-dev http://github.com/clawsonm/cakephp-propay

CakePHP 2.x wrapper plugin for ProPay API services. Uses auto generated WSDL.

  Sources   Download

MIT

The Requires

 

by Michael Clawson

cakephp

25/03 2014

0.2.0

0.2.0.0 http://github.com/clawsonm/cakephp-propay

CakePHP 2.x wrapper plugin for ProPay API services. Uses auto generated WSDL.

  Sources   Download

MIT

The Requires

 

by Michael Clawson

cakephp

26/02 2014

0.1.2

0.1.2.0

CakePHP 2.x wrapper plugin for ProPay API services. Uses auto generated WSDL.

  Sources   Download

MIT

The Requires

 

by Michael Clawson

25/02 2014

0.1.1

0.1.1.0

CakePHP 2.x wrapper plugin for ProPay API services. Uses auto generated WSDL.

  Sources   Download

MIT

The Requires

 

by Michael Clawson