"UNKNOWN" Response value on SIPS test sandbox
Opened this issue · 0 comments
Hi, when using https://payment-web.test.sips-services.com/
And using :
<dependency>
<groupId>com.worldline.sips</groupId>
<artifactId>payment-sdk</artifactId>
<version>1.4.3</version>
</dependency>
<dependency>
<groupId>com.worldline.sips</groupId>
<artifactId>payment-sdk-common</artifactId>
<version>1.4.3</version>
</dependency>
the Paypage client is initialized using Environment.TEST
If you cancel an order without doing anything first, SIPS can send a response containing
...|paymentMeanBrand=UNKNOWN|paymentMeanType=CARD|...
Resulting in an error when calling paypageClient.decodeResponse(sipsResponse)
.
Cannot deserialize value of type `com.worldline.sips.model.PaymentMeanBrand` from String "UNKNOWN":
not one of the values accepted for Enum class: [VISA, ELV, MASTERCARD, PAYPAL, IDEAL, CBCONLINE, IGNHOMEPAY, PAYTRAIL, AMEX, MAESTRO, MASTERPASS, SOFORTUBERWEISUNG, BCMC, KBCONLINE, VPAY, CB]
at [Source: UNKNOWN; line: -1, column: -1]
(through reference chain: com.worldline.sips.model.ResponseData["paymentMeanBrand"])
(through reference chain: com.worldline.sips.model.PaypageResponse["Data"])
UNKNOWN is considered a possible type from https://documentation.sips.worldline.com/en/data-dictionary/paymentmeanbrand.html
If I do anything that indicate SIPS that I'm trying to use VISA for example, it's sent correctly on cancel and there are no issues, therefore I'm wondering if either payment-sdk or payment-sdk-common is missing anything about this case.
Do you have any idea why this is occuring or any way to fix this ?