mpay24 / mpay24-java

Payment SDK for Java
Apache License 2.0
1 stars 4 forks source link

SubBrand in PaymentType not considered #5

Closed d00ndy closed 5 years ago

d00ndy commented 7 years ago

The SubBrand is not considered in the PaymentType. Please add also the SubBrand to the PaymentType.

adhalla commented 7 years ago

how to use SubBrand? is not possible in java sdk?

renefeldermpay24 commented 6 years ago

Hello, what do you mean when you say that the SubBrand is not considered? Are you talking about PaymentType or the Brand within PaymentTypeData?

PaymentType is used to define the InclusionList. The InclusionList is used on the Payment Page that is shown to the Customer to specify which payments should be shown to the customer. So for example if a merchant has CC and Paypal you can specify that only CC should be shown.

The PaymentType is a mixture of the general Type (e.g. CC) and the Brand (e.g. Visa) In general you can specify the PaymentType CC, which is used for all kind of Credit Cards. You can also specify the PaymentType CreditCard_Visa which includes the SubBrand Visa.

The Brand itself specifies SubBrands on the PaymentTypeData. So if you look into the Class CreditCardPaymentType you can specify if this payment is done using Brand VISA, MASTERCARD, DINERS, JCB, AMEX.

Where do you miss the SubBrand? It should be already there.

zirnipa commented 6 years ago

Hi, its possible to extend the preSelection with a SubBrand. See: https://docs.mpay24.com/docs/mdxi-xml#section-payment

e.g. If a specific EPS bank should be preselected for the customer.

<PaymentTypes Enable="true">
 <Payment Type="EPS" Brand="EPS" SubBrand="500"/>
</PaymentTypes>

regards, Patrick