当前位置:网站首页>Php laraver Wechat payment
Php laraver Wechat payment
2022-07-01 07:55:00 【C'est dur de trouver un nom.】
Paquet d'installation
composer require overtrue/laravel-wechat
Configuration
php artisan vendor:publish --provider="Overtrue\LaravelWeChat\ServiceProvider"
Utiliser(Notez la dernière version de microprimev6)
//app('easywechat.pay') Ou EasyWeChat::pay()
use Overtrue\LaravelWeChat\EasyWeChat;
//Par exemple, le paiement
$app = EasyWeChat::pay();
$config = $app->getConfig();
$data = [
'mchid' => $config['mch_id'],
'out_trade_no' => date('YmdHis'),
'appid' => $config['app_id'],
'description' => $remark,
'notify_url' => '',
'amount' => [
'total' => 1,
'currency' => 'CNY',
]
];
$app->getClient()->post('v3/pay/transactions/native, ['json' => $data])->toArray(false)
- Basé sur: MicroprimeSDK
边栏推荐
- [MySQL learning notes27] stored procedure
- Kickback -- find the first palindrome character in a group of characters
- Introduction to kubernetes resource objects and common commands (II)
- redisson使用全解——redisson官方文档+注释(中篇)
- Apple account password auto fill
- Download xshell and xftp
- Gui Gui programming (XV) - use scale to control font size changes
- 2022 operation of refrigeration and air conditioning equipment operation of national question bank simulated examination platform
- How to use layui to display the data in the database in the form of tables
- Caesar
猜你喜欢

Minecraft 1.16.5模组开发(五十一) 方块实体 (Tile Entity)

How relational databases work

base64

Custom events of components ①

I bet on performance and won the CTO of the company. I want to build Devops platform!

How to use layui to display the data in the database in the form of tables

Conscience Amway universal wheel SolidWorks model material website

Huawei modelarts training alexnet model
![[kv260] generate chip temperature curve with xadc](/img/fc/e5e4648b09b1123b2d494b75a9f8f7.png)
[kv260] generate chip temperature curve with xadc

redisson使用全解——redisson官方文档+注释(中篇)
随机推荐
How to check ad user information?
Kickback -- find the first palindrome character in a group of characters
Li Kou daily question - day 31 -1790 Can a string exchange be performed only once to make two strings equal
redisson看门狗机制,redisson看门狗性能问题,redisson源码解析
[skill] create Bat quick open web page
How to troubleshoot SharePoint online map network drive failure?
【批处理DOS-CMD-汇总】扩展变量-延迟变量cmd /v:on、cmd /v:off、setlocal enabledelayedexpansion、DisableDelayedExpansion
How outlook puts together messages with the same discussion
【微服务|openfeign】Feign的日志记录
Apple account password auto fill
[untitled]
The triode is a great invention
Teach you how to apply for domestic trademark online step by step
Sqlalchemy creating MySQL_ Table
Gdip - hatchBrush图案表
良心安利万向轮 SolidWorks模型素材网站
Gru of RNN
Custom events of components ①
Todolist classic case ①
三极管是一项伟大的发明