se carga sdk de openPay

This commit is contained in:
2026-03-31 17:26:51 -06:00
parent 4b0ea23b25
commit c502d047e9
7 changed files with 304 additions and 19 deletions
@@ -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();
});
}