adorsys / xs2a

Open Source NextGenPSD2 XS2A Implementation from adorsys.
https://adorsys.com/en/products/
GNU Affero General Public License v3.0
130 stars 62 forks source link

initiation of a "RawPaymentProduct" results in empty payment-information on aspsp/psu api #75

Closed benmoeARZ closed 3 years ago

benmoeARZ commented 3 years ago

Place where bug appeared

Current behavior

Expected behavior

Steps to reproduce

SCA approach

XS2A version(s):

Log files or other additional info

de.adorsys.psd2.mapper.CmsCommonPaymentMapperSupportImpl

kyaex commented 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

benmoeARZ commented 3 years ago

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.

benmoeARZ commented 3 years ago

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)

ViraHavrylenko commented 3 years ago

PaymentMapperResolver was added, please update to xs2a v.8.1