@@ -68,6 +68,13 @@ class SanJinService extends BaseService
return $sign;
}
+ /**
+ * @description: 发起支付订单
+ * @param {*} $amount 金额单位分
+ * @param {*} $orderNo 订单号
+ * @param {*} $type 支付通道
+ * @return {*}
+ */
public static function pay($amount,$orderNo,$type = self::PRODUCT_TEST)
{
@@ -0,0 +1,35 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+return new class extends Migration
+{
+ * Run the migrations.
+ *
+ * @return void
+ public function up()
+ {
+ Schema::table('payment_orders', function (Blueprint $table) {
+ //
+ $table->string('pay_no')->nullable()->comment('支付单号');
+ $table->text('pay_url')->nullable()->comment('支付地址');
+ $table->json('pay_data')->nullable()->comment('支付发起返回内容');
+ });
+ }
+ * Reverse the migrations.
+ public function down()
+};