Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Bug fix #66

wants to merge 6 commits into from

Conversation

jampulanaveen
Copy link
Contributor

No description provided.

@jampulanaveen jampulanaveen requested a review from ramth05 January 25, 2022 11:17

public function uninstall() {

$result = $this->db->query("SHOW COLUMNS FROM " . DB_PREFIX . "order LIKE 'webhook_flag'");
Copy link
Contributor

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');
Copy link
Contributor

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.

Copy link
Contributor Author

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 . "'");
Copy link
Contributor

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

Copy link
Contributor

@ramth05 ramth05 left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants