Disable Notifications

When you are working locally with Sofort you may get

<?xml version="1.0" encoding="UTF-8"?>
    <message>Must be a valid URL.</message>

That's because the notification URL you sent to Sofort is not reachable and Sofort returns error in this case. To work around the problem you can disable notifications by setting the additional option:

namespace Acme;

use Payum\Sofort\SofortGatewayFactory;

$factory = new SofortGatewayFactory();

$gateway = $factory->create([
    'config_key' => 'aKey',
    'disable_notification' => true,

and in Symfony:

      config_key: 'aKey',
      disable_notification: true            
      factory: 'sofort'

Pay attention that you must do it only for local/dev environments and never in production.

Supporting Payum

Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:

Last updated