-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug fix #66
base: master
Are you sure you want to change the base?
Bug fix #66
Conversation
|
||
public function uninstall() { | ||
|
||
$result = $this->db->query("SHOW COLUMNS FROM " . DB_PREFIX . "order LIKE 'webhook_flag'"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move DB changes it inside model
@@ -212,7 +211,15 @@ protected function orderPaid(array $data) | |||
$merchant_order_id = $data['payload']['payment']['entity']['notes']['opencart_order_id']; | |||
$razorpay_payment_id = $data['payload']['payment']['entity']['id']; | |||
if(isset($merchant_order_id) === true) | |||
{ | |||
{ | |||
$this->load->model('extension/payment/razorpay'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check if this can be loaded one time only in class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ramth05 have checked for this, tried using class instance but it not working out.
|
||
public function setWebhookFlag($order_id,$flag) { | ||
|
||
$this->db->query("UPDATE " . DB_PREFIX . "order SET webhook_flag = '" . (int)$flag . "' WHERE order_id = '" . (int)$order_id . "'"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this table if belongs to opencart, rename the column to razorpay_webhook_count
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please test it properly enabling webhook with ngrok
No description provided.