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

Sample Data can not be used #11

Open
suguer opened this issue Dec 12, 2022 · 2 comments
Open

Sample Data can not be used #11

suguer opened this issue Dec 12, 2022 · 2 comments

Comments

@suguer
Copy link

suguer commented Dec 12, 2022

I use openapi with postman
API : Create a payment
Data:

{
  "idempotencyKey": "ba943ff1-ca16-49b2-ba55-1057e70ca5c7",
  "amount": {
    "amount": "3.14",
    "currency": "USD"
  },
  "verification": "cvv",
  "source": {
    "id": "b8627ae8-732b-4d25-b947-1df8f4007a29",
    "type": "ach"
  },
  "metadata": {
    "email": "[email protected]",
    "sessionId": "DE6FA86F60BB47B379307F851E238617",
    "ipAddress": "244.28.239.130",
    "phoneNumber": "/1146276/"
  },
  "keyId": "urn:uuid:f899a02a-3819-b046-1f1a-6f33d0c7f263",
  "autoCapture": true,
  "verificationSuccessUrl": "https://www.example.com/3ds/verificationsuccessful",
  "verificationFailureUrl": "https://www.example.com/3ds/verificationfailure",
  "description": "Payment",
  "encryptedData": "UHVibGljS2V5QmFzZTY0RW5jb2RlZA==",
  "channel": "ba943ff1-ca16-49b2-ba55-1057e70ca5c7"
}

return

{
    "code": 2,
    "message": "Request body contains unprocessable entity."
}
@suguer
Copy link
Author

suguer commented Dec 12, 2022

When I use the website interface to test, it also fails
url : https://developers.circle.com/developer/reference/createpayment

@ashutosh-ukey
Copy link
Contributor

Hi @suguer, you need to follow the format of one of the supported scenarios listed in the Postman workspace in order to create a payment:
Screen Shot 2022-12-21 at 11 16 44 AM

We have noted down this confusion and will work on making this more clear in our docs. Thanks!

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