承接 dev1d3/checkoutpage-sdk 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dev1d3/checkoutpage-sdk

最新稳定版本:v1.0.0

Composer 安装命令:

composer require dev1d3/checkoutpage-sdk

包简介

1D3 PHP SDK

README 文档

README

This is a set of libraries in the PHP language to ease integration of your service with the 1D3 Checkout Page.

Please note that for correct SDK operating you must have at least PHP 7.0.

Payment flow

Payment flow

Installation

Install with composer

composer require dev1d3/checkoutpage-sdk

Get URL for payment

$gate = new dev1d3\Gate('secret');
$payment = new dev1d3\Payment('11', 'some payment id');
$payment->setPaymentAmount(1000)->setPaymentCurrency('EUR');
$url = $gate->getPurchaseCheckoutPageUrl($payment);

$url here is the signed URL.

If you want to use another domain for URL you can change it with optional Gate constructor parameter:

new dev1d3\Gate('secret', 'https://mydomain.com/payment');

or change it with method

$gate->setPaymentBaseUrl('https://mydomain.com/payment');

Handle callback from 1D3

You'll need to autoload this code in order to handle notifications:

$gate = new dev1d3\Gate('secret');
$callback = $gate->handleCallback($data);

$data is the JSON data received from payment system;

$callback is the Callback object describing properties received from payment system; $callback implements these methods:

  1. Callback::getPaymentStatus(); Get payment status.
  2. Callback::getPayment(); Get all payment data.
  3. Callback::getPaymentId(); Get payment ID in your system.

TODO

  • Checkout Page opening
  • Notifications handling
  • Direct Gate requests
  • PHPDoc

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固