Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

azertys/payza

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Payza API gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published