承接 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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固