You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
591 B
22 lines
591 B
<?php
|
|
declare(strict_types = 1);
|
|
|
|
namespace App\Http\Controllers\Test;
|
|
|
|
use App\Utils\Traits\SendSubscribeMessage;
|
|
use UnifyPayment\Cores\Struct\RefundOrder;
|
|
use UnifyPayment\Unify;
|
|
|
|
class TestController
|
|
{
|
|
use SendSubscribeMessage;
|
|
public function test(): void
|
|
{
|
|
$app = getWeChatMiniProgramApp();
|
|
dd($app->getAccessToken()->getToken());
|
|
|
|
// $refund = new RefundOrder('WXM20250208110845293', 'WXM20250208110845293_R123', '0.01', '人工退费');
|
|
// $response = Unify::common(config('unify'))->order->refund($refund);
|
|
// dd($response);
|
|
}
|
|
}
|
|
|