valiton/saferpay-bundle

Symfony2 bundle for providing access to Saferpay. This is an extension to the JMSCorePaymentBundle.

Installs: 1 999

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 21

Forks: 5

Open Issues: 0

Type:symfony-bundle

0.4.1 2022-08-24 13:35 UTC

This package is auto-updated.

Last update: 2024-12-24 19:30:48 UTC


README

This bundle now uses the new Saferpay JSON API

Installation

Install the bundle with composer:

composer require valiton/saferpay-bundle

and activate the bundle in your kernel.

Configuration

Configure the bundle according to your needs, full config example:

valiton_payment_saferpay:
    account: <some account>  # your saferpay account, usually account-terminalid
    jsonapi_key: <some key>  # API key generated  through saferpay backend
    jsonapi_pwd: <some pw>   # API password generated through saferpay backend
    return_url: <some url>   # url called on successfull payment
    error_url: <some url>    # url called on error
    cancel_url: <some url>   # url called on user cancel
    saferpay_test: true      # use the saferpay test system at test.saferpay.com
    cardrefid: new|random    # create card alias: new: alias is generated by saferpay, random: alias is generated by us
    cardrefid_prefix: TST    # prefix of the randomly generated alias
    cardrefid_length: 33     # length of the randomly generated alias (inclusive prefix)