定制 seunex17/paychant-php 二次开发

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

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

seunex17/paychant-php

Composer 安装命令:

composer require seunex17/paychant-php

包简介

The easiest way to accept crypto currency payment on you website

README 文档

README

Introduction

Paychant is a cryptocurrency payment gateway. Founded in 2019, our mission is to increase the adoption of cryptocurrency payment in Africa, providing solutions where cryptocurrencies are spent like cash, a platform that lets buyers use their favorite cryptocurrency to pay sellers (merchants). We offer businesses an entire cryptocurrency ecosystem by providing full payment integration and instant payment settlements for merchants in either Nigerian Naira, Bitcoin, or Ethereum.

Cryptocurrency Payment Gateway API for Merchant

The Paychant API is designed for businesses that want to accept cryptocurrencies as a means of payment on their platforms without extensive technical expertise and risks related to cryptocurrency exchange rate fluctuations. The API is, therefore, suitable for applications from basic projects, to enterprise-level integration.

Paychant payment gateway provides a process of accepting Bitcoin, Ethereum, and Tether while generating unique addresses for each created order, real-time exchange rates for the payer, and a dashboard system for merchants to manage payment transactions and payouts.

The implementation of our API for payment processing on websites is very straightforward. The API credentials for connectivity can be generated from the Paychant merchant dashboard. We have also provided a Sandbox environment, where the API integration can be tested using Bitcoin and Ethereum testnet tokens, this will help developers performs test transactions before going to live mode.

Website (https://paychant.com)

Installation

Via Composer

Recommended

composer require seunex17/paychant-php

Usage

Composer autoloader

<?php

use ZubDev\Paychant;

require './vendor/autoload.php';

$paychant = new Paychant('ENVIRONMENT', 'YOUR API KEY');

Create new order

<?php

use ZubDev\Paychant;

require './vendor/autoload.php';

$paychant = new Paychant('ENVIRONMENT', 'YOUR API KEY');

// Create new transaction
$request = [
   'amount' => 100, // Product price
   'currency' => 'NGN', // Available current are (NGN, USD, GBP, EUR, AUD, CAD, JPY, CNY)
   'title' => 'Sample product name', // Title of the order
   'payer_info' => 'johndoe@example.com', // Payer information
   'description' => 'Sample order description', // Description your order
   'cancel_url' => 'https://example.com/cancel', // Page to redirect to when user cancel payment
   'success_url' => 'https://example.com/success', // Page to redirect to for payment verification
   'callback_url' => 'https://example.com/webhook', // Webhook page for instant notification of order status
   //'token' => '', // If you will to generate a custom token you can fill in this Max 50
];

// Send request to payment page
$paychant->createNewOrder($request);

// For debugging if you get blank screen
// Please uncomment below code

// print_r($paychant->createNewOrder($request));

Get order

<?php

use ZubDev\Paychant;

require './vendor/autoload.php';

$paychant = new Paychant('ENVIRONMENT', 'YOUR API KEY');
$data = $paychant->getOrder('ORDER ID');

echo '<pre>';
print_r($data);
echo '</pre>';

Get all orders

<?php

use ZubDev\Paychant;

require './vendor/autoload.php';

$paychant = new Paychant('ENVIRONMENT', 'YOUR API KEY');
$data = $paychant->listOrders();

echo '<pre>';
print_r($data);
echo '</pre>';

Get exchange rates

<?php

use ZubDev\Paychant;

require './vendor/autoload.php';

$paychant = new Paychant('ENVIRONMENT', 'YOUR API KEY');
$data = $paychant->getExchangeRates();

echo '<pre>';
print_r($data);
echo '</pre>';

Set webhook

<?php

use ZubDev\Paychant;

require './vendor/autoload.php';

$webhookKey = 'YOUR WEBHOOK SECRET KEY';
$paychant = new Paychant('ENVIRONMENT', 'YOUR API KEY');

/*
* Webhook will always return an array
*/

var_dump($paychant->webhook($webhookKey)); // This return an array

Contributing

Contributing is highly welcome fix errors add new features

seunex17/paychant-php 适用场景与选型建议

seunex17/paychant-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18 次下载、GitHub Stars 达 3, 最近一次更新时间为 2021 年 06 月 25 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「payment」 「gateway」 「paychant」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 seunex17/paychant-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 seunex17/paychant-php 我们能提供哪些服务?
定制开发 / 二次开发

基于 seunex17/paychant-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-25