Download the PHP package devsitarget/sdk-cielo-php without Composer

On this page you can find all versions of the php package devsitarget/sdk-cielo-php. 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 sdk-cielo-php

SDK PHP Cielo

SDK de integração com a API E-commerce Cielo: cartão de crédito, consulta, captura, cancelamento, Zero Auth, tokenização e parser do Post de Notificação.

Funcionalidades

Requisitos

Instalação

Configuração

Valores monetários são sempre enviados em centavos (int), como exige a API Cielo (Amount = 15700 equivale a R$ 157,00).

Uso básico

Criar pagamento com cartão de crédito (captura automática)

Autorizar agora e capturar depois

Envie capture: false na criação e chame capture() com o PaymentId retornado:

Cancelamento e estorno

Na API Cielo, cancelamento e estorno usam o mesmo endpoint (PUT /1/sales/{PaymentId}/void). O que muda é o momento:

refund() é alias de void(). Aceitam PaymentId ou acquirerTid (Tid). A Cielo só cancela por PaymentId; se vier só o Tid, o SDK consulta a transação e resolve o identificador.

Consultar transação

A consulta usa a API de query (apiquerysandbox / apiquery), distinta da API transacional.

Zero Auth e tokenização

Pagamento com cartão já tokenizado:

Post de Notificação

Status transacionais

Código Enum Descrição
0 NotFinished Aguardando atualização de status
1 Authorized Autorizado, apto a capturar
2 PaymentConfirmed Confirmado / capturado
3 Denied Negado pelo autorizador
10 Voided Cancelado
11 Refunded Estornado após o dia da autorização
12 Pending Aguardando instituição financeira
13 Aborted Abortado por falha ou antifraude
20 Scheduled Recorrência agendada

Docker

Variáveis de ambiente em env.example: CIELO_MERCHANT_ID, CIELO_MERCHANT_KEY, CIELO_ENVIRONMENT.

Estrutura


All versions of sdk-cielo-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.5
psr/http-client Version ^1.0
psr/http-message Version ^1.0 || ^2.0
psr/log Version ^1.0 || ^2.0 || ^3.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 devsitarget/sdk-cielo-php contains the following files

Loading the files please wait ...