Skip to content

"UNKNOWN" Response value on SIPS test sandbox #10

Description

@trpharove

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions