encode-media / payum-conekta
The Payum Conekta extension.
Installs: 209
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 3
Type:project
Requires
- php: ^7.2
- conekta/conekta-php: ^4.0
- payum/core: ^1.5
Requires (Dev)
- php-http/guzzle6-adapter: ^1.0
This package is auto-updated.
Last update: 2025-03-19 23:51:16 UTC
README
Payum gateway package for Conekta by Encode Media.
Installation
$ composer require encode-media/payum-conekta
Configuration
<?php use Payum\Core\PayumBuilder; use Payum\Core\GatewayFactoryInterface; $defaultConfig = []; $payum = (new PayumBuilder) ->addGatewayFactory('conekta', static function(array $config, GatewayFactoryInterface $coreGatewayFactory) { return new \EncodeMedia\Payum\Conekta\ConektaGatewayFactory($config, $coreGatewayFactory); }) ->addGateway('conekta', [ 'factory' => 'conekta', 'sandbox' => true, ]) ->getPayum() ;
Symfony integration
Register conekta
Gateway Factory as a service
# config/services.yaml services: app.payum.conekta_factory: class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder arguments: [EncodeMedia\Payum\Conekta\ConektaGatewayFactory] tags: - { name: payum.gateway_factory_builder, factory: conekta }
Configure the gateway
# config/packages/payum.yaml payum: gateways: conekta: factory: conekta public_key: key_eYvWV7gSDkNYXsmr private_key: key_eYvWV7gSDkNYXsmr
Usage
<?php use Payum\Core\Request\Capture; $conektaOxxo = $payum->getGateway('conekta'); $model = new \ArrayObject([ // ... ]); $conektaOxxo->execute(new Capture($model));
Developed by
Encode Media diseƱo y desarrollo web a la medida.
License
Library is released under the MIT License.