Closed benmoeARZ closed 3 years ago
Hi!
It seems like you are using wrong dependency, try to replace cms-payment-support-impl
with cms-payment-common-impl
. Find more information in documentation Configuring CMS Service.adoc
https://github.com/adorsys/xs2a/blob/develop/doc/SPI%20Developer%20Guide/Configuring%20CMS%20Service.adoc
Hi, i know that i can change that dependency, but then i loose all structured information when it's a standard-payment-product or i have to parse the paymentData myself in the client.
In any case it's a bug, that you receive no information when it's a non-standard-payment-product. because when you use xs2a-payment-support-impl
in xs2a impl there is also a switch
see:
https://github.com/adorsys/xs2a/blob/6a388fb8f263d5cb11c5e9bf3311e24c8761a720/xs2a-payment-support/xs2a-payment-support-impl/src/main/java/de/adorsys/psd2/xs2a/service/payment/support/PaymentServiceResolverSupport.java#L72
so you can create payments with non-standard-payment-product, but you do not receive any information about that payment when you use cms-payment-support-impl
in cms.
If you decide, that the client needs to parse the paymentData, and you will not support both (structured+common-payment) then the de.adorsys.psd2.consent.api.pis.CmsCommonPayment
should also contain the contentType, that's stored in DB (i mean this would be a good idea in any case, but i think for client-parsing it's a precondition)
PaymentMapperResolver was added, please update to xs2a v.8.1
Place where bug appeared
/psu-api/v1/payment/redirect/{redirect-id}
Current behavior
Expected behavior
Steps to reproduce
/psu-api/v1/payment/redirect/{redirect-id}
)SCA approach
XS2A version(s):
Log files or other additional info
de.adorsys.psd2.mapper.CmsCommonPaymentMapperSupportImpl