GithubHelp home page GithubHelp logo

integralces_interop's Introduction

integralCES_interop

Implements payment gateway interop for http://integralces.net

Whats this for

A web service for a payment gateway, that implements OAuth 1.0 in 3-legged way by hooking services_resources in ces_interop.module

Server configuracion

Create web service by using your drupal UI Admin interface. Here you have the steps.

Using info

  1. Http consuming:

A common service can be consumed by http://yourCES_Server/entrypoint/resource, if you have configured your REST server named as it is named on tutorial gateway, then your url will be:

  • http://yourCES_Server/gateway/interop
  1. Available methods:

2.1) GET, with params:

IN:

  • string type { 'client', 'logged', 'user', 'paymen' }

    	"client" 	-> TRUE if a existing a valid consumer_key related to a context in request. TODO: Check CES Interop exact context! 
    
    	"logged"	-> TRUE if an existing logged in user found inside request token.
    			--> Meaning: A user authorization has been performed so exists a valid access_token.
    			
    	"account"  -> Same as client
    			--> Meaning: Client wants to retrieve a user.
    
    	 "user"   	-> Same as client
    			--> Meaning: Client wants to retrieve a user.
    
    	"payment"	-> Same as client.
    			--> Meaning: Client wants to retrieve a payment.
    
  • string id Identifies the retrieved entity

OUT:

  • array wether....

    $type == 'client' 	[ (string)context ]
    $type == 'logged' 	[ (int)id, (string)name, (array of arrays[ (int)id, (string)name, (int)balance) ] accounts ]
    $type == 'user'     [ (int)id, (string)name, (array of arrays[ (int)id, (string)name, (int)balance) ] accounts ]
    $type == 'account'  [ (int)id, (string)name, (int)balance) ]
    $type == 'payment' 	[ (int)id, (int)buyer, (int)seller, (int)(amount), (string)concept, (int)state ]
    

2.2) POST (creates new payment), with params:

IN:

  • array params

    	string **buyer** Buyer account name.
    	string **seller** Buyer account name.
    	int **amount** Amount in cents.
    	string **concept** Any description for transaction.
    

OUT:

  • array [ (int)id, (bool)result, (int)state ]

NOTE: (int)state is a valid TransactionInterface::STATE

Info

Testing development server.

Drupal CES issue.

API

There is an existing API icesSDKv0 and a use it example.

Testing development server.

Doc

Documentation.

Developer.

Contribute

BTC @ 1DNxbBeExzv7JvXgL6Up5BSUvuY4gE8q4A

integralces_interop's People

Stargazers

Tom Brown avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.