-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added webhook support for late paid orders, now after success full payment orders will be processed by webhook
- Loading branch information
1 parent
7788c06
commit 38d0077
Showing
3 changed files
with
169 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
* CREATE TABLE `rzp_payments` ( | ||
`id` int(11) NOT NULL, | ||
`razorpay_event_id` varchar(50) DEFAULT NULL, | ||
`razorpay_invoice_id` varchar(40) DEFAULT NULL, | ||
`razorpay_order_id` varchar(80) DEFAULT NULL, | ||
`razorpay_payment_id` varchar(40) DEFAULT NULL, | ||
`razorpay_invoice_status` varchar(40) DEFAULT 'issued', | ||
`razorpay_invoice_receipt` varchar(40) DEFAULT NULL, | ||
`razorpay_signature` longtext, | ||
`created_at` datetime DEFAULT NULL, | ||
`updated_at` datetime DEFAULT NULL, | ||
`deleted_at` datetime DEFAULT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
*/ | ||
namespace Neexpg\Razorpay\Models; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Database\Eloquent\SoftDeletes; | ||
|
||
class RazorpayEvents extends Model | ||
{ | ||
protected $table = 'rzp_payments'; | ||
|
||
use SoftDeletes; | ||
|
||
protected $dates = [ | ||
'created_at', | ||
'updated_at', | ||
'deleted_at', | ||
]; | ||
|
||
/** | ||
* The attributes that are mass assignable. | ||
* | ||
* @var string[] | ||
*/ | ||
protected $fillable = [ | ||
'core_order_id', | ||
'razorpay_event_id', | ||
'razorpay_invoice_id', | ||
'razorpay_order_id', | ||
'razorpay_payment_id', | ||
'razorpay_invoice_status', | ||
'razorpay_invoice_receipt', | ||
'razorpay_signature', | ||
'created_at', | ||
'updated_at', | ||
'deleted_at', | ||
]; | ||
|
||
|
||
} |