Skip to content

Instantly share code, notes, and snippets.

@markotom
Last active March 14, 2018 06:41
Show Gist options
  • Select an option

  • Save markotom/825ce9992f47fa5b1d3ecc099697959d to your computer and use it in GitHub Desktop.

Select an option

Save markotom/825ce9992f47fa5b1d3ecc099697959d to your computer and use it in GitHub Desktop.

Revisions

  1. markotom revised this gist Mar 14, 2018. No changes.
  2. markotom revised this gist Mar 14, 2018. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion payload.json
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    {
    "auth_token": "...",
    "auth_token": "key_FP3nXcyUyqef8xsZJkbpTjQ",
    "conekta_client_user_agent": "{\"agent\":\"Conekta JavascriptBindings/0.3.0\"}",
    "card": {
    "number": "4242424242424242",
    2 changes: 1 addition & 1 deletion request.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    #!/bin/bash

    curl -XPOST -H "Content-Type: application/json" -d @payload.json https://api.conekta.io/tokens/create.js
    curl -XPOST -H "Content-Type: application/json" -d @payload.json https://api.conekta.io/tokens
  3. markotom created this gist May 19, 2016.
    19 changes: 19 additions & 0 deletions payload.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    {
    "auth_token": "...",
    "conekta_client_user_agent": "{\"agent\":\"Conekta JavascriptBindings/0.3.0\"}",
    "card": {
    "number": "4242424242424242",
    "name": "Javier Pedreiro",
    "exp_year": "2020",
    "exp_month": "12",
    "cvc": "123",
    "address": {
    "street1": "Calle 123 Int 404",
    "street2": "Col. Condesa",
    "city": "Ciudad de Mexico",
    "state": "Distrito Federal",
    "zip": "12345",
    "country": "Mexico"
    }
    }
    }
    3 changes: 3 additions & 0 deletions request.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/bin/bash

    curl -XPOST -H "Content-Type: application/json" -d @payload.json https://api.conekta.io/tokens/create.js