cosna/

cosna wallet的在线支付解决方案

v1.0.2 2023-01-19 14:54 UTC

This package is auto-updated.

Last update: 2024-09-19 18:28:37 UTC


README

Total Downloads Latest Stable Version License

简介

Cosna wallet是一个在线支付工具...

安装

在终端中运行以下命令以从命令行安装cosna wallet

composer require cosnaWallet/php-sdk

需求

发起支付

<?php
namespace App\Http\Controllers;
use cosnaWallet\PhpSdk\Cosnawallet;

class payment extends Controller
{
    public function objet()
    {
        return new LoovPay('private_key', 'master_key');
    }

    public function index()
    {

        $data = array(
            'amount' => 2000,
            'currency' => '',
            'hash' => '',
            'return_url' => '',
            'cancel_url' => '',
            'callback_url' => '',
        );

        $this->objet()->initPayment($data);
    }


}


## License

The cosna wallet PHP SDK is open-sourced software licensed under the [MIT license](https://open-source.org.cn/licenses/MIT).

## Security

If you discover any security related issues, please email randyahmedjunior@gmail.com instead of using the issue tracker.

It's _heavily_ recommended that you **[subscribe to the Loov Newsletter](http://loov-solutions.com)** so you can find out about any security updates, breaking changes or major features.
We send an email about 3-4 emails per year. Sometimes less.