Download the PHP package toodiz/payment-sips-bundle without Composer

On this page you can find all versions of the php package toodiz/payment-sips-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 payment-sips-bundle

KptivePaymentSipsBundle

Build Status

The ToodizPaymentSipsBundle provides access to the Atos Worldline SIPS payment solution through the JMSPaymentCoreBundle.

The following payment services are powered by Atos SIPS:

This means that this bundle should work out of the box with any of them.

Installation

Step 1

Run:

Or add the following to your composer.json before updating your vendors:

Step 2

Register the bundle in your AppKernel class. You will also have to register the JMSPaymentCoreBundle and configure it.

Step 3

Copy the content of your SIPS folder into app/sips/. If you want to put it elsewhere, just edit the config values of the pathfile and binaries locations (see below).

You will also have to copy or put your own logo images in the right location depending on what you specified in your pathfile.

Configuration

Usage

Let's assume that you have an AcmePaymentBundle and that you handle your orders with a Acme\PaymentBundle\Entity\Order class:

Create a controller with a details action. This is where your customer can review their order and confirm it.

As you can see in the previous action, when the user confirms their order, we create a new PaymentInstruction (see the JMSPaymentCoreBundle documentation for more information on how it works). They are then redirected to the payment_gateway route. This is where we'll make a call to the SIPS API so that we can display the SIPS credit card choice form.

Let's implement the corresponding action:

And in the corresponding view, display the form to the user:

When the user has completed the payment workflow on the SIPS platform, they will be redirected to the normal_return_url you configured earlier in the bundle config section.

Let's implement the action :

For now, we didn't do anything with the Order, we just handled the bank response and marked the payment as valid.

The JMSPaymentCoreBundle will trigger a payment.state_change event. So we will listen to this event and do everything useful we want in a PaymentListener:

Register it as a service:

And voilà!

If your customer doesn't click on the "Back" button on the bank platform, a request will be automatically issued to the configured automatic_response_url.

You can use the same URL as the normal_return_url or implement your own.

Warning: those examples don't take security into account. Don't forget to check the ownership of the order!

Credits

A great thank you to Johannes M Schmitt for his awesome JMSPayementCoreBundle. Thanks to https://github.com/Kitano/KitanoPaymentSipsBundle for the inspiration.

License

c6rilPaymentSipsBundle is released under the MIT License. See the bundled LICENSE file for details.


All versions of payment-sips-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
psr/log Version ~1.0
jms/payment-core-bundle Version ~1.0
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 toodiz/payment-sips-bundle contains the following files

Loading the files please wait ....