xutl/laravel-payment

This is a Laravel expansion for the Payment.

dev-master / 1.0.x-dev 2018-12-27 08:33 UTC

This package is auto-updated.

Last update: 2024-11-27 21:15:49 UTC


README

This is a aliyun expansion for the laravel

License Latest Stable Version Total Downloads

接口支持

  • WeChat
  • AliPay

环境需求

  • PHP >= 7.0

Installation

composer require xutl/laravel-payment

for Laravel

This service provider must be registered.

// config/app.php

'providers' => [
    '...',
    XuTL\Payment\PaymentServiceProvider::class,
];

Use

try {
	$wechat = Payment::get('wechat');
	
} catch (\Exception $e) {
	print_r($e->getMessage());
}