承接 owlting/owlpay-laravel 相关项目开发

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

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

owlting/owlpay-laravel

最新稳定版本:v1.2.1

Composer 安装命令:

composer require owlting/owlpay-laravel

包简介

Owlpay SDK.

README 文档

README

OwlPay Laravel SDK provides ease to use APIs and internal importing for Laravel, it's provide several use cases following.

Warning

This package is developing now, if we have a huge changes, the semi version is going to modify.

Requirements

  • PHP >= 7.3
  • PHP extension required
    • curl extension
    • json extension
    • mbstring extension
  • Laravel >= 5.4

Installation

Also, you need to publish and configure the environment keys in your application.

$ php artisan vendor:publish --provider="Owlting\OwlPay\Providers\OwlPayServiceProvider"

Finally, set the environment variables.

OWLPAY_API_URL=https://api.owlpay.com
OWLPAY_APPLICATION_SECRET=<OWLPAY_APPLICATION_SECRET>

Get OWLPAY_APPLICATION_SECRET according to the tutorial article https://docs.owlpay.com/owlpay-guideline/zh/page-introduction/role_company/developer.html#_4-%E8%A8%AD%E5%AE%9A-api-key

Send order to OwlPay

use Owlting\OwlPay\Facades\OwlPay;

$order = Order::first();
$meta_data = [
  'sku' => 'SKU#1234',
];

OwlPay::createOrder([
    'application_order_uuid' => $order->order_number, // order number from your application
    'currency' => $order->currency, // TWD
    'total' => $order->total, // paid price, 100.00
    'application_vendor_uuid' => $order->vendor_number, // vendor number from your application
    'meta_data' => $meta_data, // extra information with key-value format
]);

Read more

CHANGELOG
See OwlPay API Document

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-01-12