定制 codestage/laravel-netopia 二次开发

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

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

codestage/laravel-netopia

最新稳定版本:v0.1.0

Composer 安装命令:

composer require codestage/laravel-netopia

包简介

A fluent interface for interacting with Netopia's services.

README 文档

README

@patrasq/dev-tools

laravel-netopia

Packagist Version (including pre-releases)

A fluent interface for interacting with Netopia's services.

Info

Database

It'll create a table named netopia_payments with the following configuration:

Schema::create('netopia_payments', function (Blueprint $table): void {
    $table->string('id')->primary();
    $table->string('status')->default(PaymentStatus::NotStarted->value);
    $table->decimal('amount');
    $table->string('currency', 6);
    $table->text('description')->nullable()->default(null);
    $table->nullableMorphs('billable');
    $table->json('shipping_address');
    $table->json('billing_address');
    $table->timestamps();
});

Routes

3 routes will be added, as follows:

Method URL Note
GET /netopia/pay/{payment} Todo
GET /netopia/success Todo
POST /netopia/ipn Todo

Get started

Paste into your terminal composer require codestage/laravel-netopia

Configuration

1. Environment variables

Add the following variables to your .env file:

NETOPIA_ENVIRONMENT=
NETOPIA_SIGNATURE=

2. Config file

Create a netopia.php under the app's config directory. It should return an array composed of

Parameter Value Info
environment env('NETOPIA_ENVIRONMENT', 'sandbox') The environment that Netopia is running in. Valid values are: 'sandbox', 'production'
signature env('NETOPIA_SIGNATURE') The merchant signature provided by Netopia.
currency env('NETOPIA_CURRENCY', 'EUR') The currency used for Netopia.
certificate_path array The paths to the certificate files used for Netopia requests.
certificate_path['public'] base_path('certificates/' . env('NETOPIA_PUBLIC_FILE', 'netopia.cer'))
certificate_path['secret'] base_path('certificates/' . env('NETOPIA_PUBLIC_FILE', 'netopia.cer'))

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固