This plugin provides a Wallee or Postfinance Flex integration for Craft Commerce.
Add Wallee/Postfinance as a payment gateway in your craft commerce installation. The plugin allows configuration of many payment methods such as:
Choose between lightbox, iframe and fullpage integration mode.
Packages availabel for Craft 3, 4 and 5.
Wallee status changes can be mapped dynamically to craft commerce order status.
You can install this plugin from the Plugin Store or using Composer.
Go to the Plugin Store in your project’s control panel, search for “Wallee for Craft Commerce”, and choose Install in the plugin’s modal window.
Open your terminal and run the following commands:
# go to the project directory
cd /path/to/my-project.test
# tell Composer to load the plugin
composer require furbo/craft-commerce-wallee
# tell Craft to install the plugin
php craft install/plugin craft-commerce-wallee
<form method="post" accept-charset="UTF-8">
{{ csrfInput() }}
{{ actionInput('commerce/payments/pay') }}
{{ hiddenInput('gatewayId', cart.gatewayId) }}
{% set params = {
successUrl: '/checkout/success?number=' ~ cart.number,
cancelUrl: '/checkout/cancel?number=' ~ cart.number,
paymentButtonSelector: '#wallee-lightbox',
} %}
{# Commerce 3 #}
{{ cart.gateway.getPaymentFormHtml(params)|raw }}
{# Commerce 4 and 5 #}
{% namespace cart.gateway.handle|commercePaymentFormNamespace %}
{{ cart.gateway.getPaymentFormHtml(params)|raw }}
{% endnamespace %}
</form>
The parameter paymentButtonSelector: '#wallee-lightbox', is optional and only neeeded if you want to open the lightbox when you click on a button. If you don't use this parameter the lightbox will open automatically when the page is loaded. It's not required for the iframe and page integration.
If you have any issues with this plugin, please create an issue on GitHub or contact us at Furbo.