CompraFacil is a plugin that implements CompraFacil Payments.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with aneziocampos:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
MIT-LICENSE
README
Rakefile
compra_facil.gemspec
init.rb
install.rb
uninstall.rb

README

CompraFacil
===========

CompraFacil is a plugin that implements CompraFacil Payments.


Example
=======

This is a exemple of how it can work:

order = Order.create #standard order in my project

# Filling with data field by field
@comprafacil = CompraFacil.new
@comprafacil.origin =            "My project"
@comprafacil.user =               "MyLogin"
@comprafacil.password =           "123456"
@comprafacil.value =              10
@comprafacil.info =               "Order #{order.id}"
@comprafacil.name =               "Anezio Marques de Campos Junior"
@comprafacil.address =            "Antonio Baldan, 140"
@comprafacil.zip_code =           "123456789"
@comprafacil.city =               "Londrina"
@comprafacil.phone =              "987654321"
@comprafacil.email =              "anezio@hooppe.com"
@comprafacil.external_reference = order.id
@comprafacil.nif =                "12345678"

# Filling with hash

@comprafacil = CompraFacil.new({ :origin => "My project", :user => "MyLogin", ... })


#sending order to comprafacil servers
@comprafacil.send_order!

#retrieving the reference from comprafacil
order.reference = @comprafacil.reference

Contributors
============
Anezio Campos(Creator)
Eduardo Fiorezi @eduardofiorezi

http://hooppe.com

Copyright (c) 2010 Anezio Campos, released under the MIT license