Download the PHP package ongoing/saferpay-bundle without Composer

On this page you can find all versions of the php package ongoing/saferpay-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package saferpay-bundle

Saferpay - Extension to the JMSPaymentCoreBundle providing access to Saferpay.

This bundle now uses the new Saferpay JSON API

This is a Fork of valiton SaferpayBundle. On top of the parent functionalities, it adds the possibility to use the payment process with the Transaction Interface.

Install and enable

Install the bundle with composer:

Activate the bundle in your kernel.

Example Configuration

saferpay_checkout (JMS ChoosePaymentMethodType Form creation)

URLS can be overwritten or set in predefined data, to generate dynamic URLS for Example!

To additionally send user data with saferpay initialization, following fields could be added under array key checkout_params:

Credit Card Data

On a successful response, creditcard data is saved in extended data of the transaction with keys token, CARDREFID, CARDMASK, CARDBRAND, CARDVALIDMONTH, CARDVALIDYEAR (take a look at approve method in the SaferpayPlugin).

The generated alias is saved under CARDREFID. The alias could be used to initialize, authorize and capture a transaction in one step. By setting authorize_direct to true or false, additional security step (like 3DS) could be skipped. Be aware of liability reversal.

To let the bundle use the alias, you only have to set the creditcard_alias key (and correct alias as value) on the extended data of a JMSPaymentCoreBundle transaction/paymentinstruction BEFORE the transaction is initialized. This could be done by a form listener, a controller or any other service which is able to modify extended data.

Be aware using Saferpay Transaction with 'authorize_direct', the redirect to a success/failure/error page needs to be implemented manually.

Configuration Reference

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


All versions of saferpay-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
symfony/framework-bundle Version ^5.4
jms/payment-core-bundle Version ^1.0
guzzlehttp/guzzle Version ^6.4
fakerphp/faker Version ^1.23
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ongoing/saferpay-bundle contains the following files

Loading the files please wait ....