定制 raphaelvserafim/sdk-intopays 二次开发

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

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

raphaelvserafim/sdk-intopays

最新稳定版本:v0.0.01

Composer 安装命令:

composer require raphaelvserafim/sdk-intopays

包简介

README 文档

README

Installing via composer

composer require raphaelvserafim/sdk-intopays
Boleto
use SdkIntopays\Boleto;
use SdkIntopays\Pix;

include_once 'vendor/autoload.php';

$jwtToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NiwiZW1haWwiOiJzZGtAaW50b3BheXMuY29tIiwiaWF0IjoxNzEzMTMzMDMwfQ.0uOXAMSq09aasfUkDCzuvaKVUBBAZf0mU1uBz-UDXkQ";

$baseUrl = "https://dev-app.intopays.com";

$boleto = new Boleto($baseUrl, $jwtToken);

Listar todos os Boletos

    $boletos = $boleto->getAllBoletos();
    echo json_encode($boletos);

Gerar um novo Boleto

$data = [
  "amount" => 2.51,
  "dueDate" => "2024-02-14T07:20:06.153Z",
  "daysAfterDueDateForCancellation" => 30,
  "payerDocument" => "000.000.000-00",
  "payerName" => "Luffrs",
  "payerEmail" => "email@intoapys.com",
  "payerPhone" => "51999999999",
  "payerZipCode" => "91760110",
  "payerNumber" => "123",
  "payerComplement" => "Apto 123",
  "payerNeighborhood" => "Centro",
  "payerCity" => "Salto",
  "payerState" => "AC",
  "payerAddress" => "Rua Principal",
  "messageLine1" => "Message line 1",
  "messageLine2" => "Message line 2",
  "discount1Code" => "NO_DISCOUNT",
  "discount1Rate" => 0,
  "discount1Value" => 0,
  "discount1Date" => null,
  "discount2Code" => "NO_DISCOUNT",
  "discount2Rate" => 0,
  "discount2Value" => 10,
  "discount2Date" => "2024-02-10T00:00:00.000Z",
  "fineCode" => "NO_FINE",
  "fineDate" => null,
  "fineValue" => 0,
  "fineRate" => 0,
  "interestCode" => "EXEMPT",
  "interestDate" => null,
  "interestRate" => 0,
  "interestValue" => 0,
  "finalBeneficiaryName" => "Final Beneficiary",
  "finalBeneficiaryDocument" => "111.111.111-11",
  "finalBeneficiaryZipCode" => "98765432",
  "finalBeneficiaryAddress" => "Rua Final",
  "finalBeneficiaryNeighborhood" => "Bairro Final",
  "finalBeneficiaryCity" => "Final City",
  "finalBeneficiaryState" => "SP",
  "integrationType" => "SICOOB"
];


$response = $boleto->createBoletoTransaction($data);

echo json_encode($response);
Pix
$pix = new Pix($baseUrl, $jwtToken);

Gerar novo Pix

$data = [
  "calendarExpiration" => 86400,
  "debtorName" => "Raphael",
  "debtorDocument" => "XXX.XXX.XXX-XX",
  "amountOriginal" => "10.99",
  "amountModificationType" => 0,
  "payerRequest" => "Esse texto esta limitado a 140 caracteres.",
  "additionalInfos" => [
    [
      "name" => "Campo 1",
      "value" => "Informacao Adicional do PSP-Recebedor"
    ]
  ],
  "integrationType" => "SICOOB"
];

$response = $pix->createPixTransaction($data);

echo json_encode($response);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-02