Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call Order Error #69

Closed
channgli opened this issue Sep 25, 2017 · 5 comments
Closed

Call Order Error #69

channgli opened this issue Sep 25, 2017 · 5 comments

Comments

@channgli
Copy link

channgli commented Sep 25, 2017

Hi ,
I use the test key to call the order api and call failed,Just order api failed. Can help to see why i my "amount": 3, it still happen.

Request body:
image
Response body:
image

if i use large amount ,it give me other error:
image

image

image

Best Regards,
Channing

@lu1s
Copy link

lu1s commented Sep 25, 2017

@channgli the amount needs to be in cents. Eg, 250 mexican pesos would be 25000. Please comment if this still an issue.

@lu1s lu1s closed this as completed Sep 25, 2017
@channgli
Copy link
Author

channgli commented Sep 25, 2017

@lu1s I try use 400, more than 300. but it still failed.
image

@lu1s can you give me the example of the request ?

I use below customers, just informal card number, is that ok?
image

@lu1s
Copy link

lu1s commented Sep 27, 2017

@channgli This would be a correct request body for an order creation with charge:

{
  "line_items": [
    {
      "description": "Autem eaque nulla quo iure facere eligendi id dicta.",
      "name": "Bernardo Tirado Ponce",
      "quantity": 1,
      "unit_price": 400
    }
  ],
  "shipping_lines": [
    {
      "amount": 0,
      "carrier": "8msqtma7pd",
      "method": "xuo5umtx5s",
      "tracking_number": "bak7pn8s37"
    }
  ],
  "customer_info": {
    "email": "lalala@lelelel.com",
    "name": "limo lomo",
    "phone": "5554589994"
  },
  "shipping_contact": {
    "address": {
      "city": "Red Deer",
      "country": "AS",
      "residential": true,
      "state": "Alberta",
      "street1": "Alexis St",
      "street2": "250",
      "postal_code": "72894"
    },
    "between_streets": "Kurt Gödel, David Hilbert, Wilhelm Ackermann",
    "phone": "+1-202-555-0142",
    "receiver": "Olivia Merino Heredia"
  },
  "currency": "mxn",
  "charges": [
    {
      "payment_method": {
        "type": "card",
        "token_id": "tok_test_visa_4242"
      }
    }
  ]
}

@channgli
Copy link
Author

channgli commented Sep 27, 2017

Hi @lu1s ,
I use your request, it still exist this issue. see below. This is in test mode, does the conekta limit these amount or not ?

image

@lu1s
Copy link

lu1s commented Sep 27, 2017

#70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants