Paypal Standard Cancel Order or Return creates an order

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 anni tempo fa
Hello,

I tried to configure Paypal Standard.
The problem is when I cancel or return from paypal page, I get redirect to order confirmation page.
Why it is creating the order if I am canceling the payment method.

How should I fix this, any help will be appreciated.

Thanks
Harish
11 anni tempo fa
its a redirection-payment method, this Paypal-Method allows the customer to retry the payment, its a feature not a bug



public bool CanRePostProcessPayment(Order order)
        {
            if (order == null)
                throw new ArgumentNullException("order");
            
            //let's ensure that at least 5 seconds passed after order is placed
            //P.S. there's no any particular reason for that. we just do it
            if ((DateTime.UtcNow - order.CreatedOnUtc).TotalSeconds < 5)
                return false;

            return true;
        }
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.