Order Placed and Marked as Paid 2 times

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 yıl önce
hi,
I have made some extensions to nopcommerce 4.3.
My customisation creates a digital ticket and sends it to the customer via email.
But for some orders I see that system marks the order as paid twice. And so the system generates 2 tickets for one order. Some orders are marked as paid even before its placed.
I did not change anything in the processing of order.

I just put my generate ticket procedure in the orders paid method of orderprocessingservice.

Can You please help.

It happens for some orders not for all.

Here is some list of action from dashboard.

07/25/2020 00:06:30  "Ticket File" email (to customer) has been queued. Queued email identifiers: 34.  No file attached    
07/25/2020 00:06:28  "Order paid" email (to customer) has been queued. Queued email identifiers: 33.  No file attached    
07/25/2020 00:06:28  Order status has been changed to Complete  No file attached    
07/25/2020 00:06:28  Order status has been changed to Processing  No file attached    
07/25/2020 00:06:28  Order has been marked as paid  No file attached    
07/25/2020 00:06:28  "Order paid" email (to customer) has been queued. Queued email identifiers: 32.  No file attached    
07/25/2020 00:06:27  Order status has been changed to Complete  No file attached    
07/25/2020 00:06:27  Order status has been changed to Processing  No file attached    
07/25/2020 00:06:27  Order has been marked as paid  No file attached    
07/25/2020 00:06:27  Order placed  No file attached
3 yıl önce
Normally it is the payment plugin that proposes what the status will be if and when the order is created.
If you use a ProcessPayment (Non-redirection method) plugin then if the payment is made then the status will be set as Paid when the order is created
If you use a PostProcessPayment (Redirection method) plugin then the payment is usually made after the order is created. So the order is created with a Payment status Pending then after the payment is completed the Payment Plugin will change the status to be Paid.
Although Payment plugins can work either way

What payment plugins are you using ?
How are you detecting Payment Status is Paid ?
3 yıl önce
It would probably be 'safer' for you to create a plugin that handles order paid event (IConsumer<OrderPaidEvent>)
3 yıl önce
i use nopcommerce plus strip3dsecure plugin.
authorize and capture mode. .i process my tickets in processorderpaid method.
which is called twice
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.