question

01928-7325x2 avatar image
01928-7325x2 asked 01928-7325x2 answered

REST API Payment Failed

Some payments failed using REST API. Unusual response returned.

Cannot parse JSON for class Cannot parse JSON for class com.clover.server.handlers.api.v2.pay.DeveloperPayHandler.DeveloperPayRequest: Invalid numeric value: Leading zeroes not allowed\\n at [Source: java.io.InputStreamReader@6041ba1f; line: 1, column: 175]
REST APIPaymentsDeveloper Pay API
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Raymond Lee avatar image
Raymond Lee Deactivated answered
Hi @yauri,

I would double check that you are passing all numerical values that can start with a zero as a string. I only get Invalid numeric value: Leading zeroes not allowed if I am passing a non-zero numerical value that starts with a '0' in any of the fields (e.g. 019 instead of "019").

Looking at the response, it says it occurs at line: 1, column: 175. You can check where in the body of your request payload that it is complaining about the leading zero by looking at character 175 of your payload.

Hope that helps,

Raymond
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

01928-7325x2 avatar image
01928-7325x2 answered
Well, it is tricky problem because I don't have control about CVV or Card Number as we are using iFrame from Spreedly. So, CVV and Card Number was sent by Spreedly.
I'll contact them and see if they have a solution for this.

Thanks!
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community