QIWI-API / bill-payments-java-sdk

Java SDK модуль для внедрения единого платежного протокола эквайринга и QIWI Кошелька.
https://developer.qiwi.com/ru/bill-payments
Other
23 stars 12 forks source link

BadResponseException #11

Closed nybry04 closed 4 years ago

nybry04 commented 4 years ago

Появилась ошибка Exception in thread "Thread-54" com.qiwi.billpayments.sdk.exception.BadResponseException: ResponseData{body='{"siteId":"*","billId":"*","amount":{"currency":"RUB","value":"1.00"},"status":{"value":"PAID","changedDateTime":"2020-02-14T22:43:45.596+03:00"},"customer":{"email":"email","phone":"phone","account":"*"},"customFields":{"apiClient":"java_sdk","apiClientVersion":"1.4.0","CHECKOUT_REFERER":"https://away.vk.com/"},"comment":"Пополнение баланса","creationDateTime":"2020-02-14T22:43:12.416+03:00","expirationDateTime":"2020-02-15T22:43:13.412+03:00","payUrl":"*"}', httpStatus=200}

Хотя все раньше работало

Senderman commented 4 years ago

Подтверждаю, то же самое. И как я понял, это только для оплаченых счетов ошибка

Senderman commented 4 years ago

Ошибка в классе RequestMapperIntercessor, в private T deserializeResponseBody(Class responseClass, ResponseData response) Причина ошибки - сервер Qiwi API стал возвращать json у которого в custom fields появилось новое свойство - CHECKOUT_REFERER. И библиотека fasterxml валится от этого. В общем фикс - докинуть свойство CHECKOUT_REFERER в класс CustomFields Создал PR, ждем

Mike497 commented 2 years ago

Здравствуйте, ошибка появилась вновь при вызове com.qiwi.billpayments.sdk.client.BillPaymentClient#createBill.

AmazZ1nG commented 2 years ago

Здравствуйте, ошибка появилась вновь при вызове com.qiwi.billpayments.sdk.client.BillPaymentClient#createBill.

Тоже самое появилось

Senderman commented 2 years ago

@Mike497 @AmazZ1nG приложите стектрейс актуальный: как в шапке :) Может снова что-то в апи добавили/убрали?

xxCarLyy commented 2 years ago

@Senderman

Exception in thread "main" com.qiwi.billpayments.sdk.exception.BadResponseException: ResponseData{body='{"siteId":"*","billId":"*","amount":{"currency":"RUB","value":"1.00"},"status":{"value":"WAITING","changedDateTime":"2022-05-15T19:38:20.915+03:00"},"customer":{"email":"*","account":"*","phone":"*"},"customFields":{"apiClient":"java_sdk","apiClientVersion":"1.5.0"},"comment":"Hello World","creationDateTime":"2022-05-15T19:38:20.915+03:00","expirationDateTime":"2022-06-29T19:38:20.702+03:00","payUrl":"*","recipientPhoneNumber":"*"}', httpStatus=200}

xxCarLyy commented 2 years ago

@Senderman или держи этот.

Exception in thread "main" com.qiwi.billpayments.sdk.exception.BadResponseException: ResponseData{body='{"siteId":"*","billId":"*","amount":{"currency":"RUB","value":"1.00"},"status":{"value":"PAID","changedDateTime":"2022-05-15T18:55:37.84+03:00"},"customer":{"email":"*","phone":"*","account":"*"},"customFields":{"apiClient":"java_sdk","apiClientVersion":"1.5.0"},"comment":"Hello World","creationDateTime":"2022-05-15T18:51:38.245+03:00","expirationDateTime":"2022-06-29T18:51:37.942+03:00","payUrl":"*","recipientPhoneNumber":"*"}', httpStatus=200}

Senderman commented 2 years ago

Опять поменяли ответ от сервера:) добавили поле recipientPhoneNumber А уже есть #23 , если вольют - то проблема уйдет

xxCarLyy commented 2 years ago

Пойду тогда сбилжу тот. спасибо