papajo / tmtpay
dev-master
2017-12-25 03:18 UTC
Requires
- php: >=5.4.0
- illuminate/database: ^5.4
This package is not auto-updated.
Last update: 2024-05-30 07:32:14 UTC
README
说明
集成微信和支付宝等多个支付渠道,实现tmtpost平台中的基本支付业务场景,包括创建订单,查询订单,删除订单,创建支付方式,修改支付方式,获取第三方支付渠道凭据
用法
composer require "papajo/tmtpay"
$db = new TmtPay\Storage\PayModel(); $inputdata = [ 'user_guid' => 1, 'goods_guid' => 2, 'goods_type' => 'tmtpro_renew', 'goods_num' => 1, 'order_title' => '钛媒体PRO会员续费' ]; $pay = new TmtPay\Pay($db); $orderId = $pay->GenerateOrderId($inputdata); $proof = $pay->GenerateProof($orderId);