定制 paggi/sdk56-ecommerce 二次开发

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

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

paggi/sdk56-ecommerce

Composer 安装命令:

composer require paggi/sdk56-ecommerce

包简介

Paggi PHP SDK - Ecommerce

README 文档

README

Utilize este SDK para realizar a integração com nossa API de ecommerce.

Instalação

composer require paggi/sdk-ecommerce

Utilização

Cartões:

use Paggi\SDK;
$envConfiguration = new \Paggi\SDK\EnvironmentConfiguration();
$target = new \Paggi\SDK\Card();
$envConfiguration->setEnv("Staging");
$envConfiguration->setToken(getenv("ENVTOKEN"));
$envConfiguration->setPartnerIdByToken(getenv("ENVTOKEN"));
$cardParams =
[
    "cvv" => "123",
    "year" => "2022",
    "number" => "4123200700046446",
    "month" => "09",
    "holder" => "BRUCE WAYNER",
    "document" => "16123541090"
];
$card = $target->create($cardParams);

Pedidos

$envConfiguration = new \Paggi\SDK\EnvironmentConfiguration();
$OrderCreator = new \Paggi\SDK\Order();
$envConfiguration->setEnv("Staging");
$envConfiguration->setToken(getenv("ENVTOKEN"));
$envConfiguration->setPartnerIdByToken(getenv("ENVTOKEN"));
$charge =
[
    "amount" => 5000,
    "installments" => 10,
    "card" =>
    [
        "number" => "5573710095684403",
        "cvc" => "123",
        "holder" => "BRUCE WAYNE",
        "year" => "2020",
        "month" => "04",
        "document" => "16123541090"
    ]
];
$orderParams=
[
    "external_identifier" => "ABC123",
    "ip" => "8.8.8.8",
    "charges" => [$charge],
    "customer" =>
    [
        "name" => "Bruce Wayne",
        "document" => "86219425006",
        "email" => "bruce@waynecorp.com"
    ]
];
$response = $OrderCreator->create($orderParams);

Bancos

$envConfiguration = new \Paggi\SDK\EnvironmentConfiguration();
$bankFinder = new \Paggi\SDK\Bank();
$envConfiguration->setEnv("Staging");
$envConfiguration->setToken(getenv("ENVTOKEN"));
$envConfiguration->setPartnerIdByToken(getenv("ENVTOKEN"));
$banks = $bankFinder->find(["start"=>0, "count"=>20]);

Mais informações

Para mais informação, você pode conferir nossa documentação aqui.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固