0.0
No commit activity in last 3 years
No release in over 3 years
Plugin that implements CompraFacil Payments.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project 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