You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
payment/app/Helper/Efps/Api.php

21 lines
569 B
PHP

<?php
namespace App\Helper\Efps;
use App\Helper\Efps\Request\UnifiedPaymentRequest;
class Api
{
public static function unifiedPayment($outTradeNo, $orderInfo, $payAmount, $notifyUrl, $redirectUrl)
{
$request = new UnifiedPaymentRequest();
$request->setVersion('3.0');
$request->setOutTradeNo($outTradeNo);
$request->setOrderInfo($orderInfo);
$request->setPayAmount($payAmount);
$request->setNotifyUrl($notifyUrl);
$request->setRedirectUrl($redirectUrl);
return self::request($request);
}
}