Skip to content

Credit Card

Christian edited this page Mar 3, 2023 · 8 revisions

Overview

Mollie allows you to quickly and easily accept payments through credit cards, the most widely used online payment method in the world. It only takes 10 minutes to start receiving payments through credit card and there are no hidden fees involved.

You only pay for successful transactions.

Configuration

Credit Card is integrated like every other payment method in Shopware. Just activate it, and make sure it's assigned to your Sales Channels.

Please also verify that the payment method is enabled within your Mollie Dashboard.

Components

If you activate credit card components in the administration, the payment process becomes faster for your customers. The data for the credit card is directly asked in the checkout process within the Shopware page/theme. Without components, the data is always asked on the Mollie payment page. So components are only an optional addon.

If the customer presses the button "Submit order" when components are enabled, the payment process is triggered at Mollie and the customer will be navigated directly to the checkout finish page of Shopware without seeing a Mollie payment page.

Credit card data is never stored in Shopware whether components are activated or not.

One-Click Payments

Mollie allows customers to save their credit card for repeating orders. If you want to use this feature, just enable it in the plugin configuration.

Customers will then get a checkbox to save their cards. Previously saved cards will be visible during the checkout. In addition to this, all saved cards are also visible on the payment methods page in the account, where they can also be removed again.

If you want to read more about One-Click payments, please see this page: One-Click Payments

Workflow

If the user decides to pay using credit card, he will be redirected to the Mollie page where data can be entered if no credit card components are used.

After a successful payment, the user will be redirected back to your Shopware shop.

What to consider?

This payment method should just work. The optional credit card components however can be used to enhance the checkout experience of your customers.

Troubleshooting

If you have any problems by running credit card, please view the Shopware Logs to see if an error happened. If so, it might already tell you what went wrong. Besides this, here are a few things that can go wrong.

Most problems (like Mollie is undefined) happen because the Twig blocks are not correctly inherited. Please ensure that the Mollie.js file is loaded on your page. Here is the (current implementation) of the code that loads the file: https://github.com/mollie/Shopware6/blob/master/src/Resources/views/storefront/page/checkout/confirm/index.html.twig

Components not visible

The components are added to the Shopware default theme. It has been designed to work as smooth and generic as possible, but due to customizations or usage of different themes it can happen that the components are not added correctly to the page.

In that case, please let us know what customizations and themes you are using, and we try to help you as good as possible.

Clone this wiki locally