Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yproximite/payum-axepta-bnp
Axepta gateway for Payum
https://github.com/yproximite/payum-axepta-bnp
axepta gateway payum payum-extension
Last synced: about 1 month ago
JSON representation
Axepta gateway for Payum
- Host: GitHub
- URL: https://github.com/yproximite/payum-axepta-bnp
- Owner: Yproximite
- License: mit
- Created: 2021-05-05T13:32:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T13:04:09.000Z (9 months ago)
- Last Synced: 2024-11-07T06:20:24.521Z (about 2 months ago)
- Topics: axepta, gateway, payum, payum-extension
- Language: PHP
- Homepage:
- Size: 241 KB
- Stars: 3
- Watchers: 6
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Payum Axepta by BNP
> A Payum gateway to use [Axepta](https://docs.axepta.bnpparibas/display/DOCBNP/Documentation+Axepta+BNP+Paribas+-++Home) (a French payment system)
[![Latest Stable Version](https://poser.pugx.org/yproximite/payum-axepta-bnp/version)](https://packagist.org/packages/yproximite/payum-axepta-bnp)
[![Build Status](https://travis-ci.com/Yproximite/payum-axepta-bnp.svg?token=pNBs2oaRpfxdyhqWf28h&branch=master)](https://travis-ci.com/Yproximite/payum-axepta-bnp)## Requirements
- PHP 7.4+
- [Payum](https://github.com/Payum/Payum)
- Optionally [PayumBundle](https://github.com/Payum/PayumBundle) and Symfony 3 or 4+## Installation
```bash
$ composer require yproximite/payum-axepta-bnp
```## Configuration
### With PayumBundle (Symfony)
First register the gateway factory in your services definition:
```yaml
# config/services.yaml or app/config/services.yml
services:
yproximite.axepta_gateway_factory:
class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
arguments: [ Yproximite\Payum\Axepta\AxeptaGatewayFactory ]
tags:
- { name: payum.gateway_factory_builder, factory: axepta }
```Then configure the gateway:
```yaml
# config/packages/payum.yaml or app/config/config.ymlpayum:
gateways:
axepta:
factory: axepta
merchant_id: 'change it' # required
hmac: 'change it' # required
crypt_key: 'change it' # required
```### With Payum
```php
addDefaultStorages()->addGateway('gatewayName', [
'factory' => 'axepta',
'merchant_id' => 'change it', // required
'hmac' => 'change it', // required
'crypt_key' => 'change it', // required
])->getPayum()
;
```## Usage
Make sure your `Payment` entity overrides `getNumber()` method like this:
```php
id;
}
}
```By doing this, the library will be able to pick the payment's id and use it for the payment with Axepta.