setCurrency($currency); $request->setBaseCurrency($baseCurrency); $request->setPlatform($platform); $request->setLanguage($language); return self::request($request); } public static function makeJSAPIOrder($orderName, $outOrderNo, $currency, $amount, $notifyUrl, $redirectUrl) { $request = new MakeJSAPIOrderRequest(); $request->setOrderName($orderName); $request->setCurrency($currency); $request->setOutOrderNo($outOrderNo); $request->setAmount($amount); $request->setNotifyUrl($notifyUrl); $request->setRedirectUrl($redirectUrl); $request->setDirectPay(0); $request->setShowPcPayUrl(0); return self::request($request); } public static function refund($orderNo, $outRefundNo, $amount) { $request = new RefundRequest(); $request->setOrderNo($orderNo); $request->setOutRefundNo($outRefundNo); $request->setAmount($amount); return self::request($request); } public static function queryRefund($refundNo) { $request = new QueryRefundRequest(); $request->setRefundNo($refundNo); return self::request($request); } }