-
Notifications
You must be signed in to change notification settings - Fork 2
CompraFacil is a plugin that implements CompraFacil Payments.
License
aneziocampos/CompraFacil
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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
About
CompraFacil is a plugin that implements CompraFacil Payments.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published