coreshop/payum-postfinance-bundle

CoreShop - PostFinance Bundle

v2.0.0 2023-02-28 10:44 UTC

This package is auto-updated.

Last update: 2024-03-28 13:05:16 UTC


README

This Bundle activates the PostFinance PaymentGateway in CoreShop. It requires the dachcom-digital/payum-postfinance repository which will be installed automatically.

Important Information

There is nasty behaviour if a customer returns from the PostFinance payment page: PostFinance fires the callback page twice if the user clicks the "abort" or "ok" button. This leads to a "token not fond" since the token gets invalidated at the first request. This Bundle will partly override the HttpRequestVerifierBuilder to prevent this invalidation (and triggers only if the payment gateway matches with PostFinance.) To prevent tokens to stay forever, there is also a Command and Maintenance Script which removes outdated "Capture" and "After-Pay" tokens older than two days.

Requirements

CoreShop >= 3.0

Installation

1. Composer

    "coreshop/payum-postfinance-bundle": "~2.0.0"

2. Activate

Enable the Bundle in Pimcore Extension Manager

3. Setup

Go to CoreShop -> PaymentProvider and add a new Provider. Choose postfinance from type and fill out the required fields.

Maintenance Listener

Every 24h a maintenance script will remove capture and after-pay tokens older than two days. If you want to change the amount, just override the parameter:

parameters:
    post_finance_token_expired_days: 20

Command

Remove outdated tokens

$ bin/console postfinance:invalidate-expired-tokens --days=20

Changelog

v2.0.0

  • Pimcore X + CoreShop 3 ready