I'm using v2.0.5.0 and just got this error: 'UserHostName: 195.35.91.68 does not end with: .rbsworldpay.com.' Looking at this page: http://www.worldpay.com/support/index.php?page=domain-change&c=WW I can see that worldpay have made some changes to the way they work. How would I change the site to accept connections from the new worldpay domains?
uCommerce 2 would actively block payment callbacks from unknown URLs. The authorization of callbacks has since changed in version 3 and above.
To fix this issue you can either upgrade to a later version or override the ProcessCallback method on the WorldPayPaymentMethod class to take over callback handling yourself.
You can inherit the class WorldPayPaymentMethodService and override the ProcessCallback method. Once that's done in uCommerce 2 register the new implementation in the web.config and change the configured payment method to use the new service.
We've scheduled a work item to fix this issue. Hopefully a release should be out soon. If this is urgent you have to override the paymentmethod service yourself.
If you need the code please contact me at msk at ucommerce dot dk and i'll send you the code so you can remove if from your installation.
I am experiencing the same problem with uCommerce 4.0.3.13287. I have emailed you with more information requesting the sample code for overriding ProcessCallback in WorldPayPaymentMethodService.
Just overriding ProcessCallback in WorldPayPaymentMethodService by excluding the check for rbsworldpay.com did get rid of the error, but seem to have introduced another null reference error in ProcessCallback. However, upgrading to uCommerce 4.0.7 with the standard WorldPayPaymentMethodService fixed all related issues for me.
Should I uninstall the previous version first? I didn't do this and it gave me 2 installations of uCommerce in the "Installed Packages List" also, none of my product pages where working, giving me 404 errors?
Having two packages in the list should be fine. Can you tell me which versions you upgraded? Also can you please specify a little about which errors you're seeing ?
i use ucommerce v1.0.3 and i get error "Umbraco.Web.UmbracoApplication - An unhandled exception occurred System.Security.SecurityException: UserHostName: 195.35.91.68 does not end with: .rbsworldpay.com. at UCommerce.Transactions.Payments.WorldPay.WorldPayPaymentMethodService.ProcessCallback(Payment payment) at UCommerce.Transactions.Payments.PaymentProcessor.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) The Zone of the assembly that failed"
but i test in local it work fine for redirect the woprldpay but when i test this on live i got this error so any idea for this
Worldpay callback failure
Hi,
I'm using v2.0.5.0 and just got this error: 'UserHostName: 195.35.91.68 does not end with: .rbsworldpay.com.' Looking at this page: http://www.worldpay.com/support/index.php?page=domain-change&c=WW I can see that worldpay have made some changes to the way they work. How would I change the site to accept connections from the new worldpay domains?
Thanks in advance, Luke
uCommerce 2 would actively block payment callbacks from unknown URLs. The authorization of callbacks has since changed in version 3 and above.
To fix this issue you can either upgrade to a later version or override the ProcessCallback method on the WorldPayPaymentMethod class to take over callback handling yourself.
Hope this helps.
Hi Soren,
any examples of overiding the ProcessCallback method?
Thanks,
Simon
Sure, which version are you on?
Its Version 2.6.1.0
You can inherit the class WorldPayPaymentMethodService and override the ProcessCallback method. Once that's done in uCommerce 2 register the new implementation in the web.config and change the configured payment method to use the new service.
Hi Soren,
I'm having the same issue with the error "UserHostName: 195.35.91.68 does not end with: .rbsworldpay.com." but, I'm using uCommerce v3.6.1.13149.
You say in an earlier post that uCommerce handles thing diffently from v3. How can I get around this problem without writing overide code?
Regards
Mark
Hi Mark,
We've scheduled a work item to fix this issue. Hopefully a release should be out soon. If this is urgent you have to override the paymentmethod service yourself.
If you need the code please contact me at msk at ucommerce dot dk and i'll send you the code so you can remove if from your installation.
Regards
Morten
Hi Morten
I am experiencing the same problem with uCommerce 4.0.3.13287. I have emailed you with more information requesting the sample code for overriding ProcessCallback in WorldPayPaymentMethodService.
Thanks in advance,
Rigardt
Done.
You want to upgrade your current install. Here are the relevant downloads with the fix for every major version:
uCommerce 2.6.6
uCommerce 3.6.8
uCommerce 4.0.7
Just overriding ProcessCallback in WorldPayPaymentMethodService by excluding the check for rbsworldpay.com did get rid of the error, but seem to have introduced another null reference error in ProcessCallback. However, upgrading to uCommerce 4.0.7 with the standard WorldPayPaymentMethodService fixed all related issues for me.
Many thanks!
Hi Soren, I followed your upgrade doc (http://www.publicvoid.dk/ChecklistForUpdatingUCommerce.aspx) but, it didn't work properly.
Should I uninstall the previous version first? I didn't do this and it gave me 2 installations of uCommerce in the "Installed Packages List" also, none of my product pages where working, giving me 404 errors?
Any ideas?
Mark
Hi Mark,
Having two packages in the list should be fine. Can you tell me which versions you upgraded? Also can you please specify a little about which errors you're seeing ?
Best regards
Morten
i use ucommerce v1.0.3 and i get error "Umbraco.Web.UmbracoApplication - An unhandled exception occurred
System.Security.SecurityException: UserHostName: 195.35.91.68 does not end with: .rbsworldpay.com.
at UCommerce.Transactions.Payments.WorldPay.WorldPayPaymentMethodService.ProcessCallback(Payment payment)
at UCommerce.Transactions.Payments.PaymentProcessor.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The Zone of the assembly that failed"
but i test in local it work fine for redirect the woprldpay but when i test this on live i got this error so any idea for this
is working on a reply...