commit
5d315bc6fc
2 changed files with 14 additions and 3 deletions
|
|
@ -13,6 +13,7 @@
|
|||
namespace App\PaymentDrivers\Authorize;
|
||||
|
||||
use App\Exceptions\GenericPaymentDriverFailure;
|
||||
use App\Exceptions\PaymentFailed;
|
||||
use App\Models\GatewayType;
|
||||
use App\PaymentDrivers\AuthorizePaymentDriver;
|
||||
use net\authorize\api\contract\v1\CreateCustomerPaymentProfileRequest;
|
||||
|
|
@ -211,7 +212,8 @@ class AuthorizePaymentMethod
|
|||
$message = $errorMessages[0]->getCode().' '.$errorMessages[0]->getText();
|
||||
}
|
||||
|
||||
throw new GenericPaymentDriverFailure($message);
|
||||
throw new PaymentFailed($message, 500);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,12 +14,21 @@ class AddNumberFieldToClientsAndVendors extends Migration
|
|||
public function up()
|
||||
{
|
||||
Schema::table('clients', function (Blueprint $table) {
|
||||
$table->string('number')->nullable();
|
||||
$table->renameColumn('id_number', 'number');
|
||||
});
|
||||
|
||||
Schema::table('vendors', function (Blueprint $table) {
|
||||
$table->string('number')->nullable();
|
||||
$table->renameColumn('id_number', 'number');
|
||||
});
|
||||
|
||||
Schema::table('clients', function (Blueprint $table) {
|
||||
$table->string('id_number')->nullable();
|
||||
});
|
||||
|
||||
Schema::table('vendors', function (Blueprint $table) {
|
||||
$table->string('id_number')->nullable();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue