Created
August 24, 2018 21:26
-
-
Save iDavidMorales/23299a81ceef16286cc95588973bf13a to your computer and use it in GitHub Desktop.
This file contains 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
<? | |
curl -H "Accept: application/vnd.conekta-v2.0.0+json" \ | |
-H "Content-type: application/json" \ | |
-u key_wCompRCWsQmjFvNNWgGryQ: \ | |
-X POST -d '{ | |
"currency": "MXN", | |
"customer_info": { | |
"customer_id": "cus_2j9UbTbPwVANCprzg", | |
"antifraud_info": { | |
"paid_transactions": 4 | |
} | |
}, | |
"line_items": [{ | |
"name": "Box of Cohiba S1s", | |
"unit_price": 35000, | |
"quantity": 1, | |
"antifraud_info": { | |
"trip_id": "12345", | |
"driver_id": "driv_1231", | |
"ticket_class": "economic", | |
"pickup_latlon": "23.4323456,-123.1234567", | |
"dropoff_latlon": "23.4323456,-123.1234567" | |
} | |
}], | |
"charges": [{ | |
"payment_method": { | |
"type": "default" | |
} | |
}] | |
}' https://api.conekta.io/orders | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment