PHPackages                             multboy/desafio - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. multboy/desafio

ActiveLibrary[API Development](/categories/api)

multboy/desafio
===============

This package is a connector gateway on Codificar API

1.0.7(2y ago)017proprietaryPHP

Since Apr 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MuLtBoY/desafio)[ Packagist](https://packagist.org/packages/multboy/desafio)[ RSS](/packages/multboy-desafio/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

Description to package 'desafio'
================================

[](#description-to-package-desafio)

This package is a integration with payment gateways, standardizing all entries and outputs of data.

Prerequisites
-------------

[](#prerequisites)

The main requirements for using this package have already been referenced in the composer.json file, however it is recommended to use PHP8.1 and LARAVEL10, as tests have not yet been carried out on other versions.

This code using mysql database to save configs. Version MYSQL8.0.36 tested.

Instalation
-----------

[](#instalation)

1º Require this package by composer

composer require multboy/desafio

2º Run migration to create and populate a configuration table

php artisan migrate

3º For utilization this package, import and instance default gateway as:

updateGatewayConfig($resolver::GATEWAY\_CIELO, 'merchant\_id', '93fa44b4-fb61-476e-8cab-8950efed518e'); $resolver-&gt;updateGatewayConfig($resolver::GATEWAY\_CIELO, 'merchant\_key', 'RHNRVSJCXMNPOTKGOKMSOZLZJQXCQJVAMGDBVYDP'); $current = $resolver-&gt;resolveCurrent('gateway\_cielo', true); //true represents devMode (sandbox) to test $current-&gt;cardCreate('5171407457820511', '12', '30', '123', 'Teste Holder'); //tokenize card $current-&gt;cardCharge(11, 'master', '00555af3-34a1-4e03-acb1-b02443b26a19', '123'); //creates card authorized payment $current-&gt;cardCharge(15.10, 'master', '00555af3-34a1-4e03-acb1-b02443b26a19', '123', true);//creates card authorized payment and instant capture $current-&gt;cardCapture('791c7e11-7904-4a22-aaea-9cdf485ea7c1', 11); //captures previously card payment authorized 4º The informations of sandbox Cielo are in
