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

Orders not getting created in store but payment captured #64

Open
hitinder opened this issue May 5, 2021 · 20 comments
Open

Orders not getting created in store but payment captured #64

hitinder opened this issue May 5, 2021 · 20 comments

Comments

@hitinder
Copy link

hitinder commented May 5, 2021

Version 2.4.0
PrestaShop: 1.7.5.1

The order is not getting created in PrestaShop store and customer are getting charged.

image

@hitinder
Copy link
Author

@ramth05 is there anything required to fix this issue?

@ramth05
Copy link
Contributor

ramth05 commented May 11, 2021

@ramth05 is there anything required to fix this issue?

@hitinder, please try to use webhook feature. Let me know if any issue.

@hitinder
Copy link
Author

@hitinder, please try to use webhook feature. Let me know if any issue.

@ramth05 what events should I enable for the webhook?

@ramth05
Copy link
Contributor

ramth05 commented May 11, 2021

@hitinder, please try to use webhook feature. Let me know if any issue.

@ramth05 what events should I enable for the webhook?

@hitinder order.paid event, with same webhoo secret both the places ( Rzp dashboard and prestashop)

@hitinder
Copy link
Author

@hitinder, please try to use webhook feature. Let me know if any issue.

@ramth05 what events should I enable for the webhook?

@hitinder order.paid event, with same webhoo secret both the places ( Rzp dashboard and prestashop)

@ramth05 should I disabled any of the other events? Will all the below events work?

image

@ramth05
Copy link
Contributor

ramth05 commented May 11, 2021

@hitinder, please try to use webhook feature. Let me know if any issue.

@ramth05 what events should I enable for the webhook?

@hitinder order.paid event, with same webhoo secret both the places ( Rzp dashboard and prestashop)

@ramth05 should I disabled any of the other events? Will all the below events work?

image

@hitinder , yes only order.paid be enabled and others must be disabled. Please test it and if any issue let us know

@hitinder
Copy link
Author

hitinder commented May 12, 2021

@hitinder , yes only order.paid be enabled and others must be disabled. Please test it and if any issue let us know

@ramth05 now there is another issue. After enabling the webhook in the PrestaShop back office there are 2 order created for each payment at an interval of 1 second.

image

@ramth05
Copy link
Contributor

ramth05 commented May 12, 2021

@hitinder , yes only order.paid be enabled and others must be disabled. Please test it and if any issue let us know

@ramth05 now there is another issue. After enabling the webhook in the PrestaShop back office there are 2 order created for each payment at an interval of 1 second.

image

@hitinder , this looks like bug, Please give us some days of time to fix this issue. Please disable the webhook for now.

@hitinder
Copy link
Author

@hitinder , this looks like bug, Please give us some days of time to fix this issue. Please disable the webhook for now.

@ramth05 done that in both dashboard and our backoffice.
Also, one of the order was in authorized mode even though we have set "authorized and capture" in the plugin settings. If you want I can share the order/payment ID.

@hitinder
Copy link
Author

Hello @ramth05
Any update on this?

@ramth05
Copy link
Contributor

ramth05 commented May 20, 2021

Hello @ramth05
Any update on this?

@hitinder, apologise and thanks for your patience. It's already added in our priority list. The ETA for same will be before 15 June. Please give us some time.

@hitinder
Copy link
Author

Thank you for the update and the ETA @ramth05 , we will now make sure to review payments everyday until 15th June and follow up with you.

@ramth05
Copy link
Contributor

ramth05 commented Jun 11, 2021

@hitinder , We have released 2.4.1 version of plugin. It contains configurable webhook wait time to trigger order from the backend. Use at least 2 mins (180 sec) delay (default is 300sec).

Please test it before deploying to production.

@hitinder
Copy link
Author

@ramth05 thank you for the update ram.
So what I understand is that now the plugin will not make 2 order but it will wait for X seconds and then if there is no order only then the order will me created?

I am guessing both the issues are resolved with this new update?

P.S. Original issue was that sometimes order was not getting created. Then we found an issue where two order were made for single payment, one during the checkout and other via webhook.

@ramth05
Copy link
Contributor

ramth05 commented Jun 15, 2021

@hitinder , yes it should fix both the issue.

@hitinder
Copy link
Author

@ramth05 It is still making duplicated order.
image

@ramth05
Copy link
Contributor

ramth05 commented Jun 20, 2021

@ramth05 It is still making duplicated order.
image

@hitinder , is it started today only or you are getting duplicate after upgrade for each order.

@hitinder
Copy link
Author

@ramth05 I am getting duplicated after the upgrade for all most all the orders. Today 2 orders didn't get duplicated. They are both UPI but on 18th 1 UPI order was created twice.

@ramth05
Copy link
Contributor

ramth05 commented Jun 20, 2021

@ramth05 I am getting duplicated after the upgrade for all most all the orders. Today 2 orders didn't get duplicated. They are both UPI but on 18th 1 UPI order was created twice.

@hitinder, can you please completely remove razorpay folder from module and try to install it again. Looks like installation not correct. Also can you please confirm if the table razorpay_sales_order present in your site DB.

@hitinder
Copy link
Author

@ramth05 the table wasn't created in the DB. We made a clean installation and now there is a table. Hopefully, it will work this time. We will update you in any case. THX!

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

No branches or pull requests

2 participants