Created
September 30, 2015 22:59
-
-
Save javiermurillo/1fbb8066158ba392079b to your computer and use it in GitHub Desktop.
Llamada básica de cargo en Conekta utilizando ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
charge = Conekta::Charge.create({ | |
"currency"=>"MXN", | |
"amount"=> 20000, | |
"description"=>"Stogies", | |
"reference_id"=>"9839-wolf_pack", | |
"card"=> "tok_test_visa_4242", | |
"details"=> { | |
"email"=> "[email protected]", | |
"line_items"=> [{ | |
"name": "Box of Cohiba S1s", | |
"description": "Imported From Mex.", | |
"unit_price": 51000, | |
"quantity": 1, | |
"sku": "cohb_s1", | |
"type": "pizza-purchase" | |
}] | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment