其他：
测试与使用示例
1. 启动应用程序
-------------------------------------------------
package com.uesa.payment;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class PaymentApplication {
    public static void main(String[] args) {
        SpringApplication.run(PaymentApplication.class, args);
    }
}
----------------------------------------
2. 测试支付接口
使用Postman或curl测试支付接口：
# 创建页面跳转支付
curl -X POST "http://localhost:8080/payment/create" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "name=VIP会员&money=100.00&payType=alipay&param=user_id=123"

# 创建API支付
curl -X POST "http://localhost:8080/payment/create/api" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "name=VIP会员&money=100.00&payType=alipay&device=pc&param=user_id=123"
-------------------------------------------------------------------------
3. 模拟支付回调测试

# 模拟支付平台异步通知
curl -X POST "http://localhost:8080/payment/notify" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "pid=1222&trade_no=202503300001&out_trade_no=UESA1648623456789&type=alipay&name=VIP会员&money=100.00&trade_status=TRADE_SUCCESS&param=user_id=123&sign=生成的签名&sign_type=MD5"

---------------------------