定制 dojo-engineering/dojo-php 二次开发

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

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

dojo-engineering/dojo-php

最新稳定版本:v2.0.0

Composer 安装命令:

composer require dojo-engineering/dojo-php

包简介

The official Dojo PHP library, supporting PHP 7.4+

README 文档

README

The official Dojo PHP library, supporting Payments API.

Installation

Use Composer to install the Dojo PHP library:

composer require dojo-engineering/dojo-php

Build source code

In order to build, PHP 7.4+ is required. Alternatively, use the VSCode devcontainer. Do the following:

  1. Run:
composer install
  1. Run from the root of the repository (with execute permission):
./build/generate-openapi.sh
  1. Copy all files from /generated/src into /src

Documentation

For a comprehensive list of examples, check out the API documentation.

Usage

use Dojo_PHP\ApiFactory;

$apiKey = "YOUR_API_KEY";
$apiPaymentIntent = ApiFactory::createPaymentIntentApi($apiKey);

$req = new CreatePaymentIntentRequest();
$req->setReference("test");

$money = new Money();
$money->setValue(100);
$money->setCurrencyCode("GBP");

$req->setAmount($money);

$pi = $apiPaymentIntent->paymentIntentsCreatePaymentIntent(\Dojo_PHP\API_VERSION, $req);

For any requests, bugs, or comments, please open an issue or submit a pull request. You can also reach out to us on our Discord server.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-12