@@ -8,5 +8,5 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'mojo_refund_details'; |
10 | 10 | |
11 | - protected $fillable = ['user_id','refund_id','payment_id','status','type','body','refund_amount','total_amount',]; |
|
11 | + protected $fillable = ['user_id', 'refund_id', 'payment_id', 'status', 'type', 'body', 'refund_amount', 'total_amount', ]; |
|
12 | 12 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function up() |
17 | 17 | { |
18 | - Schema::create('mojo_refund_details', function (Blueprint $table) { |
|
18 | + Schema::create('mojo_refund_details', function(Blueprint $table) { |
|
19 | 19 | $table->increments('id'); |
20 | 20 | $table->integer('user_id')->unsigned(); |
21 | 21 | $table->foreign('user_id')->references('id')->on('users'); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function up() |
17 | 17 | { |
18 | - Schema::create('mojo_payment_details', function (Blueprint $table) { |
|
18 | + Schema::create('mojo_payment_details', function(Blueprint $table) { |
|
19 | 19 | $table->increments('id'); |
20 | 20 | $table->integer('user_id')->unsigned(); |
21 | 21 | $table->foreign('user_id')->references('id')->on('users'); |
@@ -8,10 +8,10 @@ |
||
8 | 8 | { |
9 | 9 | public function boot() |
10 | 10 | { |
11 | - $this->loadMigrationsFrom(__DIR__.'/../migrations'); |
|
11 | + $this->loadMigrationsFrom(__DIR__ . '/../migrations'); |
|
12 | 12 | |
13 | 13 | $this->publishes([ |
14 | - __DIR__.'/config/laravelmojo.php' => config_path('laravelmojo.php'), |
|
14 | + __DIR__ . '/config/laravelmojo.php' => config_path('laravelmojo.php'), |
|
15 | 15 | ]); |
16 | 16 | } |
17 | 17 | public function register() |
@@ -8,6 +8,6 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'mojo_payment_details'; |
10 | 10 | |
11 | - protected $fillable = ['user_id','buyer_email','buyer_name','buyer_phone','currency','amount','fees','longurl','payment_id', |
|
12 | - 'payment_request_id','purpose','shorturl','request_status','payment_status',]; |
|
11 | + protected $fillable = ['user_id', 'buyer_email', 'buyer_name', 'buyer_phone', 'currency', 'amount', 'fees', 'longurl', 'payment_id', |
|
12 | + 'payment_request_id', 'purpose', 'shorturl', 'request_status', 'payment_status', ]; |
|
13 | 13 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | $payload = ['payment_id' => $payment_id, |
67 | 67 | 'type' => $type, |
68 | - 'body' => $reason ]; |
|
68 | + 'body' => $reason]; |
|
69 | 69 | |
70 | 70 | $response = self::closeCurl($curl, $payload); |
71 | 71 | $afterDecoding = json_decode($response); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | 'webhook' => config('laravelmojo.webhook_url'), |
143 | 143 | 'send_sms' => false, |
144 | 144 | 'email' => $user->email, |
145 | - 'allow_repeated_payments' => false ]; |
|
145 | + 'allow_repeated_payments' => false]; |
|
146 | 146 | |
147 | 147 | return $payload; |
148 | 148 | } |