EasyPay
一款针对海外虚拟产品,定制需求的支付方式

安装
composer require szwtdl/easypay:v1.0.0 -vvv
配置
use EasyPay\Factory;
$config = [
'client_id' => 'stripe_client_id',
'client_key' => 'stripe_client_key',
'return_url' => 'https://www.xxx.com',
'cancel_url' => 'https://www.xxx.com',
'mode' => 'test'
];
发起支付
$result = Factory::stripe($options)->pay([
'title' => '黄金会员',
'total' => '100.00'
]);
print_r($result);
同步通知
$result = Factory::stripe($options)->verify();
print_r($result);
异步通知
$result = Factory::stripe($options)->notify([
'title' => '黄金会员',
'total' => '100.00'
]);
print_r($result);
订单查询
$result = Factory::stripe($options)->query([
'title' => '黄金会员',
'total' => '100.00'
]);
print_r($result);
发起退款
$result = Factory::stripe($options)->refund([
'title' => '黄金会员',
'total' => '100.00'
]);
print_r($result);