定制 clubfixinsurtech/valorempay 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

clubfixinsurtech/valorempay

最新稳定版本:1.0.2

Composer 安装命令:

composer require clubfixinsurtech/valorempay

包简介

Integração com o Gateway de Pagamento Valorem Pay

README 文档

README

Maintainer Source Code PHP from Packagist Latest Version Software License Build Quality Score Total Downloads

Integration with the ValoremPay payment gateway.

Integração com o Gateway de Pagamento Valorem Pay.

Highlights

  • Simple installation (Instalação simples)
  • Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

Available services

  • Criação de transação
  • Efetivação de Pagamento
  • Confirmação de Pagamento
  • Criação de Cancelamento
  • Efetivação do Cancelamento
  • Armazenamento do Cartão de Crédito
  • Envio do Cartão a ser Armazenado
  • Consulta da Transação

Installation

Valorem Pay is available via Composer:

composer require clubfixinsurtech/valorempay

Documentation

For more details on how to use it, see the "examples" folder in the component's directory. It contains an example of how to use the class. It works as follows:

Para obter mais detalhes sobre como utilizar, consulte a pasta "examples" no diretório do componente. Nela, haverá um exemplo de utilização da classe. O funcionamento é o seguinte:

Basic Usage:
<?php

$clientId = '';
$clientSecret = '';
$isSandbox = true;

$connector = new \ValoremPay\ValoremPayConnector(clientId: $clientId, clientSecret: $clientSecret, isSandbox: $isSandbox);

// Create transaction
$transaction = (new \ValoremPay\Strategies\TransactionCreateStrategy(
    installments: 1,
    installment_type: \ValoremPay\Enums\InstallmentType::STORE_WITHOUT_INTEREST,
    amount: 1000,
))->setAdditionalData(
    (new \ValoremPay\Entities\AdditionalData(
        status_notification_url: 'example.com',
    )),
);

$request = $connector->valoremPay()->transactionCreate($transaction);
$response = $request->object();

dump($request, $response);

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-10-30