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

"UNKNOWN" Response value on SIPS test sandbox #10

Open
trpharove opened this issue Nov 10, 2022 · 0 comments
Open

"UNKNOWN" Response value on SIPS test sandbox #10

trpharove opened this issue Nov 10, 2022 · 0 comments

Comments

@trpharove
Copy link

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 ?

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

1 participant