李东云 1814adc30e feat(product): 增加 EMA 产品查询功能
- 移除了未使用的 ProductItem 引用
- 修改了 findEmaProduct 方法的参数,从 currentVersion 改为 uid
- 更新了 findEmaProduct 方法的实现,使用 uid 参数进行查询
- 重构了 RechargeProduct 对象的构建方式,提高了代码可读性
- 更新了单元测试,增加了 EMA 产品查询的测试用例
2025-08-18 16:57:14 +08:00
2023-07-18 10:00:16 +08:00
2023-07-18 10:00:16 +08:00
2024-02-27 15:28:23 +08:00
2023-09-19 18:22:47 +08:00
2023-07-18 10:00:16 +08:00
2025-07-17 11:42:14 +08:00
2023-07-18 10:00:16 +08:00
2023-07-18 10:00:16 +08:00
2023-07-18 10:00:16 +08:00
2024-02-27 15:27:33 +08:00
2023-07-18 10:00:16 +08:00

HDK-Pay

A sdk to connect to LuxPay.

PHP Versions

This version will work on PHP version 8.0 and above.

Getting Started

PHP 8.0 or above and Composer is expected to be installed on our system.

Installing

composer require singularity/hdk-pay

This will install all dependencies needed for the project.

Configurations

You need to add an item http_request.pay.rpc_base_uri in config/autoload/common.php. Usually, the value of this item will be https://pay.luxcreo.cn or https://test-pay.luxcreo.cn. Don't need the following /.

Running the Tests

All tests can be run by executing

vendor/bin/phpunit

phpunit will automatically find all tests inside the test directory and run them based on the configuration in the phpunit.xml file.

Testing Approach

The test for the class Greeting verifies that the return value of the sayHello method returns the string "Hello {name}", where {name} is the value passed through to the constructor.

Running the Application

PHP has an in-built server for local development. This can be started by executing

php -S localhost:8000 -t public

Then open your browser at http://localhost:8000/example.php

You should see the text "Hello Ada Lovelace" on your screen.

Built With

License

This project is licensed under the MIT License - see the LICENCE.md file for details.

Description
No description provided
Readme 830 KiB
Languages
PHP 98.1%
Shell 1.9%