|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @remark :
|
|
|
|
* @name :PayStripeController.php
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/12/24 14:46
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Bside\PayStripe;
|
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Helper\PayStripeApi;
|
|
|
|
use App\Http\Controllers\Bside\BaseController;
|
|
|
|
use App\Models\ExtentModule\ExtensionModuleValue;
|
|
|
|
|
|
|
|
class PayStripeController extends BaseController
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取支付方式
|
|
|
|
* @name :getPayMethod
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/12/24 14:47
|
|
|
|
*/
|
|
|
|
public function getPayMethod(){
|
|
|
|
$pay = new PayStripeApi();
|
|
|
|
$data = $pay->currency_types;
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :创建支付意图
|
|
|
|
* @name :createPaymentIntent
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/12/24 14:56
|
|
|
|
*/
|
|
|
|
public function createPaymentIntent(){
|
|
|
|
|
|
|
|
//创建订单--记录当前的stripe_id
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |