se carga sdk de openPay
This commit is contained in:
@@ -7,7 +7,11 @@ use Illuminate\Support\Facades\Schema;
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
|
||||
const STATUS_PENDIENTE = 'pendiente';
|
||||
const STATUS_PROCESO = 'proceso';
|
||||
const STATUS_PAGADO = 'pagado';
|
||||
const STATUS_FALLIDO = 'fallido';
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
@@ -23,7 +27,16 @@ return new class extends Migration
|
||||
$table->dateTime('fecha_pagado')->nullable();
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->unsignedBigInteger('asignacion');
|
||||
$table->integer('status');
|
||||
$table->enum('status', ['pendiente','proceso','pagado','fallido'])->default('pendiente');
|
||||
|
||||
$table->string('openpay_id')->nullable();
|
||||
$table->string('order_id')->nullable()->unique();
|
||||
$table->string('metodo_pago')->nullable();
|
||||
$table->string('referencia')->nullable();
|
||||
$table->timestamp('fecha_webhook')->nullable();
|
||||
|
||||
$table->json('openpay_response')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user