miguelalcaino/kushki-bundle

There is no license information available for the latest version (1.0.7) of this package.

Installs: 35

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.7 2019-05-23 16:48 UTC

This package is auto-updated.

Last update: 2024-04-24 05:00:58 UTC


README

This bundle adds the functionality of kushki payments in Miguel Alcaino's Mindbody Payments prjects. It requires Symfony > 3.4 to work properly.

Installation

composer require miguelalcaino/kushki-bundle

Configuration

In your .env file add (replace the values with your own data):

KUSHKI_PUBLIC_ID=XXXXXXX
KUSHKI_PRIVATE_ID=YYYYYYY

Create a kushki.yaml file in config/packages. And add your payment handler:

miguel_alcaino_kushki:
    transaction_record:
        transaction_record_factory: miguel_alcaino.mindbody.transaction_record.factory

Leave that value as it is if you want to use the MiguelAlcainoMindbodyPaymentsBundle TransactionRecordFactory. If you are planning to use a custom one it should implament MiguelAlcaino\PaymentGateway\Interfaces\Factory\TransactionRecordFactoryInterface.

Install the routes

Create a new kushki.yaml file under config/routes and it should look like this:

kushki_routes:
    resource: '@MiguelAlcainoKushkiBundle/Controller/'
    type: annotation

Usage

TODO