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

Golang SDK(encryption and decryption) not decrypting correct response sent by ONDC server #76

Open
bmarwaha-godaddy opened this issue Jun 2, 2024 · 0 comments

Comments

@bmarwaha-godaddy
Copy link

Hi

I am in bit of situation. I am trying to use Golang module for encryption and decryption. I borrowed the code from GOLANG utility.

I deployed a server and ondc is making a call back to my subscribe endpoint and sending me a challenge string. I decrypt the challenge string and write response back.
But ondc fails with

{
    "message": {
        "ack": {
            "status": "NACK"
        }
    },
    "error": {
        "type": "CORE-ERROR",
        "code": "131",
        "path": null,
        "message": "https://comedia.in/on_subscribe : Encryption verification is failed"
    }
}

This should not be happening as this is pretty straighforward. I mailed ondc team about it and response I got from them was "Golang module has worked for others".. I am wondering if I can get quick help

Challenge I got from ONDC : JCpy7xxSd2K2GIHG31hCP4ijwkOKbPuNdJvJCANQwkHxoi6uoaw7Wp3zjLr5xp3Q
Response I sent : {"answer":"i cannot paste this!"}

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

1 participant