When paying with PayPal the auto-return URL to the PDTHandler displays an internal error page. However, if I press F5 to refresh the page then the customer confirmation page is displayed.
The error within the logs is the following:
One or more errors occurred. (A task was canceled.)
System.AggregateException: One or more errors occurred. (A task was canceled.) ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Nop.Plugin.Payments.PayPalStandard.PayPalStandardPaymentProcessor.GetPdtDetails(String tx, Dictionary`2& values, String& response)
at lambda_method(Closure , Object , Object )
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object arguments)
I have set up the Paypal Standard plugin, entering the PayPal email and the PDT identity token taken from PayPal.
I have turned on 'Auto return' within PayPal and entered my PDT handler as such: https://www.mysite.co.uk/Plugins/PaymentPayPalStandard/PDTHandler
Payment data transfer has also been set to 'On' within PayPal.
I'm not really sure what the error is or how I should proceed with trying to fix this.
Any help or advice would be greatly appreciated.