承接 nabeelcartlow/coinpayment 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

nabeelcartlow/coinpayment

Composer 安装命令:

composer require nabeelcartlow/coinpayment

包简介

CoinPayment is a Laravel module for handling transactions from CoinPayment like creating transactions, history transactions, etc.

README 文档

README

Latest Stable Version Total Downloads License

Coinpayment Laravel Package

Banner

CoinPayment is a Laravel package for handling transactions from CoinPayment like a create transaction, history transaction, etc.

Example Image

Version support

version laravel
v1.1.3 5.6
v2.0.0 5.8
v2.0.3 6.x
Current Version ^8.x

Installation

You can install this package via composer:

$ composer require nabeelcartlow/coinpayment

Publishing vendor

$ php artisan vendor:publish --tag=coinpayment

Install CoinPayment configuration

$ php artisan coinpayment:install

Installation finish.

Getting Started

Create Button transaction. Example placed on your controller

  use Hexters\CoinPayment\CoinPayment;
  . . . 
  /*
  *   @required true
  */
  $transaction['order_id'] = uniqid(); // invoice number
  $transaction['amountTotal'] = (FLOAT) 37.5;
  $transaction['note'] = 'Transaction note';
  $transaction['buyer_name'] = 'Jhone Due';
  $transaction['buyer_email'] = 'buyer@mail.com';
  $transaction['redirect_url'] = url('/back_to_tarnsaction'); // When Transaction was comleted
  $transaction['cancel_url'] = url('/back_to_tarnsaction'); // When user click cancel link


  /*
  *   @required true
  *   @example first item
  */
  $transaction['items'][] = [
    'itemDescription' => 'Product one',
    'itemPrice' => (FLOAT) 7.5, // USD
    'itemQty' => (INT) 1,
    'itemSubtotalAmount' => (FLOAT) 7.5 // USD
  ];

  /*
  *   @example second item
  */
  $transaction['items'][] = [
    'itemDescription' => 'Product two',
    'itemPrice' => (FLOAT) 10, // USD
    'itemQty' => (INT) 1,
    'itemSubtotalAmount' => (FLOAT) 10 // USD
  ];

  /*
  *   @example third item
  */
  $transaction['items'][] = [
    'itemDescription' => 'Product Three',
    'itemPrice' => (FLOAT) 10, // USD
    'itemQty' => (INT) 2,
    'itemSubtotalAmount' => (FLOAT) 20 // USD
  ];

  $transaction['payload'] = [
    'foo' => [
        'bar' => 'baz'
    ]
  ];

  return CoinPayment::generatelink($transaction);
  . . . 

Listening status transaction

Open the Job file App\Jobs\CoinpaymentListener for the listen the our transaction and proccess

Manual check without IPN

This function will execute orders without having to wait for the process from IPN

We can also make cron to run this function if we don't use IPN

use Hexters\CoinPayment\CoinPayment;

. . .

/**
* this is triger function for running Job proccess
*/
return CoinPayment::getstatusbytxnid("CPDA4VUGSBHYLXXXXXXXXXXXXXXX");
// output example: "celled / Timed Out"

Get histories transaction Eloquent

use Hexters\CoinPayment\CoinPayment;

. . .

CoinPayment::gettransactions()->where('status', 0)->get();

IPN Route

Except this path /coinpayment/ipn into csrf proccess in App\Http\Middleware\VerifyCsrfToken

. . .
/**
  * The URIs that should be excluded from CSRF verification.
  *
  * @var array
  */
protected $except = [
    '/coinpayment/ipn'
]; 
. . .

Promote New Features

Now you can integrate you coinpayment transaction with Ladmin (Laravel Admin scaffolding). You just buy for the package price starting at $ 36.25 per version.

What is the features?

  • List of the transaction from CoinPayment base on database
  • Create new transaction from admin page & send to buyer email
  • You can Check status of transaction via admin page manually
  • Remove pending transaction
  • List of CoinPayment Balance
  • Top Up balance
  • Easy and quick Installation

For details source visit the pakcage Ladmin CoinPayment

Preview Plugin

Troubleshooting

Cannot use object of type Illuminate\Http\JsonResponse as array

Visit the CoinPayment API Keys page, under Actions, click on the Edit Permissions button. Enter the IP address of your API endpoint (e.g. your website server) in the Restrict to IP/IP Range input. Leaving it empty, may cause this error to occur.

Supporting the project

You can support the maintainer of this project through the referral links below

nabeelcartlow/coinpayment 适用场景与选型建议

nabeelcartlow/coinpayment 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 73 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 08 月 28 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 nabeelcartlow/coinpayment 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 40
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-28