定制 ynievespuntonetsurl/qvapay-sdk-php 二次开发

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

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

ynievespuntonetsurl/qvapay-sdk-php

最新稳定版本:v1.0.2

Composer 安装命令:

composer require ynievespuntonetsurl/qvapay-sdk-php

包简介

This PHP library facilitates the integration of the Qvapay API

README 文档

README

Banner

Latest Version on Packagist MIT Licensed Tests Check & fix styling Total Downloads

This PHP library facilitates the integration of the Qvapay API.

Sign up on QvaPay

Create your account to process payments through QvaPay at https://qvapay.com/register.

Requirements

  • PHP version >= 7.3
  • Composer

Installation

You can install the package via composer:

composer require ynievespuntonetsurl/qvapay-sdk-php

Usage

  • First, import the Client class and create your QvaPay client using your app credentials.
require_once __DIR__ . '/vendor/autoload.php';

use  YnievesPuntoNetSURL\QvaPay\Client;
try {
    $qvapay = new Client([
        'app_id' => 'XXX', 
        'app_secret' => 'XXX',
        'version' => '1'
    ]);
} catch (\Exception $e) {
    echo $e->getMessage();
}
  • Get your app info
try {
    print_r($qvapay->info());
} catch (\Exception $e) {
    echo $e->getMessage();
}
  • Create an invoice
try {
    $invoice = $qvapay->create_invoice([
        'amount' => 10,
        'description' => 'Ebook',
        'remote_id' => 'EE-BOOk-123',
        'signed' => 1
    ]);
    print_r($invoice);
} catch (\Exception $e) {
    echo $e->getMessage();
}
  • Get transactions
try {
    print_r($qvapay->transactions());
} catch (\Exception $e) {
    echo $e->getMessage();
}
  • Get transaction
try {
    print_r($qvapay->get_transaction($uuid));
} catch (\Exception $e) {
    echo $e->getMessage();
}
  • Get your account balance
try {
    echo $qvapay->balance();
} catch (\Exception $e) {
    echo $e->getMessage();
}

You can also read the QvaPay API documentation: https://qvapay.com/docs.

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-29