anosmx/tap-payment-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

anosmx/tap-payment-laravel

Composer 安装命令:

composer require anosmx/tap-payment-laravel

包简介

Laravel wrapper for Tap Payment gateway API. https://tap.company

README 文档

README

This package provides an easy way to interact with Tap Payment https://tap.company.

Laravel compatibility

Laravel PHP
^8.0 8.0

Installation

Use the package manager composer to install.

composer require anosmx/tap-payment-laravel

Publish configuration file.

php artisan vendor:publish --tag=tap-payment-config

Available variables

TAP_API_TOKEN={Your Tap Payment Token}
TAP_CURRENCY='SAR'
TAP_TIMEZONE='Asia/Riyadh'
TAP_RECEIPT_BY_EMAIL=false
TAP_RECEIPT_BY_SMS=false
TAP_COUNTRY_CODE='966'
TAP_POST_URL='http://localhost'
TAP_REDIRECT_URL='http://localhost'
TAP_LANG_CODE='ar'

Usage

Available classes:

Authorize
Card
Charge
Customer
Invoice
Order
Product
Recurring
Refund
Subscription
Token

Example class usage:

Access the class using Facade.

use Anosmx\TapPayment\Facades\TapCharge;

$attributes = [
    'period_date_from'  => 1516315144000,
    'period_date_to'    => 1545172744000,
    'period_type'       => 1,
    'status'            => '',
    'starting_after'    => '',
    'limit'             => 25
];

$charges = TapCharge::listCharges($attributes);

Or directly

use Anosmx\TapPayment\Authorize;

$authorize = new Authorize();
$authorize->updateAuthorize($authorize_id, [
    'description'   => 'Foo',
    'receipt_email' => true,
    'receipt_sms'   => false,
    'metadata_udf2' => 'Bar'
]);

Available attributes can be found in each class function. ex:

Anosmx\TapPayment\{ClassName}

License

The MIT License (MIT).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固