GithubHelp home page GithubHelp logo

payza's Introduction

Payza

Payza allows to connect your Ruby on Rails application to the Payza API.

Installation

  $ sudo gem install payza

Payza needs an payza.yml file in your config directory (Rails App).

# All those fields are mandatory  

sandbox:
  url:  "https://sandbox.payza.com/api/api.svc/"
  user: "[email protected]"
  pass: "password_here"

live:
  url:  "https://api.payza.com/svc/api.svc/"
  user: "[email protected]"
  pass: "password_here"

Example usage

#This example is for the mass pay api.

p = Payza.new(true) # true mean "use sandbox" data = { :currency => "USD", :testmode => "1", :receiveremail_1 => "[email protected]", :amount_1 => 20, :note_1 => "A new customer" #this is optional }

#The second argument is the API method. To see all methods check the Payza API https://dev.payza.com/integration-tools/api/

result = p.call_payza(data,"executemasspay") # will return a hash

payza's People

Contributors

azertys avatar

Stargazers

 avatar Reece May avatar Alexander Balashov avatar Brad Folkens avatar Ciocanel Razvan avatar  avatar

Watchers

Ciocanel Razvan avatar James Cloos avatar  avatar

Forkers

mohamagdy harmaty

payza's Issues

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.