承接 polarizetech/merchant 相关项目开发

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

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

polarizetech/merchant

最新稳定版本:0.0.10

Composer 安装命令:

composer require polarizetech/merchant

包简介

Marketplace payments support for Laravel (via Stripe Connect)

README 文档

README

Merchant

Marketplace payments support for Laravel (via Stripe Connect)

Installation

Install package: composer required polarize/merchant "^0.0"

Add your stripe API credentials to your environment file (make sure Stripe Connect is enabled via the Stripe Dashboard):

STRIPE_KEY="..."
STRIPE_SECRET="..."

Publish the migration for Merchant table: php artisan vendor:publish --tag=merchant.migrations

Run migrations: php artisan migrate

Setup your models

Relate the Merchant model to your User model (or whichever model you'd like to give merchant payment capabilities to):

<?php
use Merchant\Merchant;

public function merchant(): MorphOne
{
    return $this->morphOne(Merchant::class, 'merchantable');
}

Facilitate payments

Here are some things you can do for your merchants:

createStripeAccount(), deleteStripeAccount() - Create/delete the Stripe\Account in stripe

newAccountLinkUrl() - Generate a new URL to the Stripe connect portal

createTaxId(), taxIds(), deleteTaxId() - Manage account level tax ids

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-17