500 errors on create customer

Drew Krumel's Avatar

Drew Krumel

29 Apr, 2019 09:10 PM

Hi,
I'm getting this return when I attempt to create a customer after a successful validation. Please let me know what additional information you require.
Thanks

Cheddar response:
{
    "error": {
        "@id": "",
        "@code": "500",
        "@auxCode": "1002",
        "#text": "An unexpected error occured.  Please try again later."
    }
}
  1. Support Staff 1 Posted by Meghan Turner on 29 Apr, 2019 09:17 PM

    Meghan Turner's Avatar

    Hi Drew,

    Are you sending in a value for the subscription[ccCountry] parameter with the create customer request? When you use CheddarPay, that parameter is required.

    Meghan

  2. 2 Posted by Drew Krumel on 29 Apr, 2019 09:25 PM

    Drew Krumel's Avatar

    Hi Meghan,
    We are using the ccCountry field. Below is an example payload

    {
        "code": "[email blocked]",
        "firstName": "Daniel",
        "lastName" : "Test",
        "email": "[email blocked]",
        "subscription": {
            "planCode": "PAY_AS_YOU_GO",
            "ccFirstName": "Daniel",
            "ccLastName": "Test",
            "ccAddress": "Example address",
            "ccCity": "Mexico City",
            "ccState": "Mexico City",
            "ccZip": "09890",
            "ccCountry": "Mexico",
            "ccCardCode": "123",
            "ccNumber": "4111111111111111",
            "ccExpiration": "12/2020"
        }
    }
    
  3. Support Staff 3 Posted by Meghan Turner on 29 Apr, 2019 09:42 PM

    Meghan Turner's Avatar

    Thanks for that! Just to check, are you using the ISO 3166-1 alpha-3 country code (e.g. MEX instead of Mexico)?

    I've looked up the most recent transaction attempts from your product account in our logs and the request that's going to the CheddarPay gateway looks like this:

    {
    "first_name": "Daniel",
    "last_name": "Test",
    "email": "[email blocked]",
    "address_line1": "Example address",
    "city": "Mexico City",
    "state": "Mexico City",
    "zip": "09890",
    "country": null,
    "id": "b9ff995a-6ac0-11e9-8b9c-0050560134d5"
    }
    

    If you're not using the correct format it might explain why the country is listed as null, but let me know if that's not the case and I'll keep digging!

    Meghan

  4. 4 Posted by Drew Krumel on 29 Apr, 2019 10:18 PM

    Drew Krumel's Avatar

    Hi Meghan,
    Thanks that fixed the issue.
    One last question is there a way to re-enable developer mode?
    Drew

  5. Support Staff 5 Posted by Meghan Turner on 29 Apr, 2019 10:45 PM

    Meghan Turner's Avatar

    You can downgrade back to dev by logging in and visiting this page, but if you have any customer data in your product account, I'd suggest leaving it in production mode as downgrading back to dev will automatically delete it. If you'd like to have a product account for testing, just create a new product here.

    To keep the new account in free dev mode, just don't add a credit card at the Go Live step of the Quick Setup and click on the cheese in the upper left corner to navigate to the Dashboard instead.

    Let me know if you have any other questions!

    Meghan

  6. 6 Posted by Drew Krumel on 30 Apr, 2019 04:26 AM

    Drew Krumel's Avatar

    Hi Meghan,
    Thank you for your help. Everything is resolved.
    Best,
    Drew

  7. Meghan Turner closed this discussion on 02 May, 2019 08:51 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM