codestage/laravel-netopia

A fluent interface for interacting with Netopia's services.

v0.1.0 2023-02-19 00:00 UTC

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:

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