iqv/qliro_php_sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

iqv/qliro_php_sdk

最新稳定版本:1.0.0

Composer 安装命令:

composer require iqv/qliro_php_sdk

包简介

PHP SDK for the Qliro payment API

README 文档

README

A PHP client for the Qliro payment API, covering both the Merchant API (order creation) and the Admin API (order management and settlements).

Requirements

Installation

composer require iqv/qliro_php_sdk

Quick start

use Qliro\Transport\GuzzleConnector;
use Qliro\MerchantApi\Order;

// Pass true as the third argument to use the test environment.
$connector = new GuzzleConnector('your-api-key', 'your-api-secret', isTest: true);

$order = new Order($connector);
$order->create([
    'MerchantReference'                      => 'ORDER-001',
    'Currency'                               => 'SEK',
    'Country'                                => 'SE',
    'Language'                               => 'sv-SE',
    'MerchantTermsUrl'                       => 'https://example.com/terms',
    'MerchantConfirmationUrl'                => 'https://example.com/confirmation',
    'MerchantOrderManagementStatusPushUrl'   => 'https://example.com/status-push',
    'OrderItems' => [
        [
            'MerchantReference' => 'SKU-001',
            'Description'       => 'Blue sneakers',
            'Quantity'          => 1,
            'UnitPrice'         => 89.90, // Specified with 0, 1 or 2 decimals, e.g. 99, 99.9 or 99.99.
        ],
    ],
]);

echo 'Qliro order ID: ' . $order->getId() . PHP_EOL;

Examples

See the examples/ directory for runnable scripts:

File Description
examples/merchant_order.php Create and update a Merchant API order
examples/admin_order.php Fetch, ship items, and cancel an Admin API order

API coverage

Class Description
Qliro\MerchantApi\Order Create, update, and fetch merchant orders
Qliro\AdminApi\Order Manage orders: ship, return, cancel, add items
Qliro\AdminApi\Settlement Query settlements by date range
Qliro\AdminApi\OrderItemStatus Constants: RESERVE, CAPTURE, REFUND
Qliro\AdminApi\SettlementStatus Constants: ACCEPTED, REJECTED, PENDING

Environments

Environment Base URL
Production https://payments.qit.nu/
Test https://pago.qit.nu/

Pass true as the third constructor argument of GuzzleConnector to target the test environment.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固