Skip to content

Credit Card

marekrzytki edited this page May 18, 2022 · 1 revision

The credit card is probably one of the easiest and most common used payment method. Using this payment method doesn't require lots of configuration.

Still it's possible to use it in 2 different ways.

Simple Credit Card

If you do not have enabled the "Credit Card Components", Mollie will automatically redirect the user to the external Mollie payment page, where he will enter the credit card data.

The shop does not know anything about the data.

Use this as a simple plug and play solution to provide credit card payments.

Credit Card Components

If you don't want to redirect your customer to an external page to enter the credit card data, you can also show that option directly in your shop.

Enable the "Credit Card Components" in the Mollie plugin configuration, clear your caches and also generate the theme.

Now the payment selection in Sylius will instantly show a form to enter data if credit card is selected. Validation will happen immediately when the customer tries to submit the credit card payment method.

If everything succeeds, the Mollie plugin will automatically use the entered credit card when the customer places his order.

If the data is somehow gone, missing or invalid, the default payment page of Mollie will be shown, where he can add the credit card data one more time.

Clone this wiki locally