mobilabsolutions / stash-sdk-backend

Backend code and documentation for the Stash! SDK
Apache License 2.0
3 stars 0 forks source link

Create alias endpoint cannot find PSP configuration for BS_PAYONE #63

Closed ugi-mobilab closed 5 years ago

ugi-mobilab commented 5 years ago

Description

When trying to create a credit card alias I am getting 400 status with following message: {"message":"PSP configuration for 'BS_PAYONE' cannot be found from used merchant"}

Steps to reproduce

  1. Call alias endpoint with proper public key and "BS_PAYONE" psp parameter

    Expected Result

    A correct response is returned

Logs

2019-03-20 10:34:36.647 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: --> POST https://payment-dev.mblb.net/api/v1/alias
2019-03-20 10:34:36.647 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: Content-Length: 0
2019-03-20 10:34:36.647 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: PSP-Type: BS_PAYONE
2019-03-20 10:34:36.648 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: --> END POST (0-byte body)
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: <-- 400 https://payment-dev.mblb.net/api/v1/alias (156ms)
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: x-content-type-options: nosniff
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: x-xss-protection: 1; mode=block
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: cache-control: no-cache, no-store, max-age=0, must-revalidate
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: pragma: no-cache
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: expires: 0
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: x-frame-options: DENY
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: content-type: application/json;charset=UTF-8
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: date: Wed, 20 Mar 2019 09:34:36 GMT
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: via: 1.1 google
2019-03-20 10:34:36.805 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: alt-svc: clear
2019-03-20 10:34:36.807 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: {"message":"PSP configuration for 'BS_PAYONE' cannot be found from used merchant"}
2019-03-20 10:34:36.807 24075-30566/com.mobilabsolutions.payment.sample.debug D/OkHttp: <-- END HTTP (82-byte body)
jovanamobilab commented 5 years ago

this was db data issue, since the local db was used for testing, and the data wasn't added to dev db.