Project

payza

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A simple gem for the Payza payment network
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.9.0
~> 3.2.6
 Project Readme

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: "you_username@email.com"
  pass: "password_here"

live:
  url:  "https://api.payza.com/svc/api.svc/"
  user: "you_username@email.com"
  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 => "client_1_test@email.com", :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