You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to create a payment connector that communicates to a 3rd party provider using a WSDL service. I created a payment connector based on a sample project and without additional changes that seems to work fine. Then in Visual Studio I add a connected service to my solution/project. I just add it and I don't use or reference it in my code. Then I rebuild the solution and install the extension. If I then look in HQ (F&O) and go to the hardware profile then I don't see my payment connector anymore in the lookup (before I did see it). Same for the payment method on the store and same for the 'payment service'. Then when I open the store commerce app and use on eof the gift card buttons/functionality then I get a very general error message "There was an error with the card payment service.". If I delete the connected service again and rebuild and install the extension then everything works fine again. So I'm doing something wrong with the connected service. Please advice on what is the correct way to add the connected service with the WSDL in Visual Studio.
Thx in advance.
Update 22-02-2024:
Before I tried to add the service reference on the project that also contained the payment connector. Now I tried something else. I added a new project to my solution and added the service reference in that new project. On the first sight that seems to work, because the problems described above are gone. However, I have now another error message:
The core payment sdk caught an exception while executing BalanceOnGiftCard.
Platform: Portable. Ex: System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceModel.Http, Version=4.1.2.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.ServiceModel.Http, Version=4.1.2.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
When adding the service reference, the system automatically adds and installs some "System.Servicemodel." package references. It installs version 4.4.. Apparently when using the Store Commerce app it seems to look for another version of this assembly and I can't find a way around it. I can manually via NuGet install another version, but the error stays. Strange enough the version number in the error message (event viewer) keeps changing everytime I change version via NuGet.
Related to that article I also found below and tried the solution they proposed (multi-target your WCF libraries....), but that doesn't help unfortunately: https://github.com/dotnet/wcf/issues/5287
Perhaps I'm not searching in the right direction for a solution, but I thought let's provide you with this additional information. Hope it helps.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need to create a payment connector that communicates to a 3rd party provider using a WSDL service. I created a payment connector based on a sample project and without additional changes that seems to work fine. Then in Visual Studio I add a connected service to my solution/project. I just add it and I don't use or reference it in my code. Then I rebuild the solution and install the extension. If I then look in HQ (F&O) and go to the hardware profile then I don't see my payment connector anymore in the lookup (before I did see it). Same for the payment method on the store and same for the 'payment service'. Then when I open the store commerce app and use on eof the gift card buttons/functionality then I get a very general error message "There was an error with the card payment service.". If I delete the connected service again and rebuild and install the extension then everything works fine again. So I'm doing something wrong with the connected service. Please advice on what is the correct way to add the connected service with the WSDL in Visual Studio.
Thx in advance.
Update 22-02-2024:
Before I tried to add the service reference on the project that also contained the payment connector. Now I tried something else. I added a new project to my solution and added the service reference in that new project. On the first sight that seems to work, because the problems described above are gone. However, I have now another error message:
The core payment sdk caught an exception while executing BalanceOnGiftCard.
Platform: Portable. Ex: System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceModel.Http, Version=4.1.2.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.ServiceModel.Http, Version=4.1.2.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
When adding the service reference, the system automatically adds and installs some "System.Servicemodel." package references. It installs version 4.4.. Apparently when using the Store Commerce app it seems to look for another version of this assembly and I can't find a way around it. I can manually via NuGet install another version, but the error stays. Strange enough the version number in the error message (event viewer) keeps changing everytime I change version via NuGet.
I did find the below article. Perhaps it's the cause of the error?
https://learn.microsoft.com/en-us/dotnet/core/compatibility/wcf-client/6.0/net-standard-2-support](https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Fcompatibility%2Fwcf-client%2F6.0%2Fnet-standard-2-support&data=05%7C02%7CMichel.Cambeen%40focus-solutions.nl%7Ce4392ed9c4c24deb3b8f08dc33959ddd%7Cfcea803ccd1f45a68e4411b1d7165ccc%7C0%7C0%7C638441964898425286%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=bNWBt74eLQ0syN6i4cRXCXhK8qJOnLdzrTvc1XWJ3GU%3D&reserved=0
Related to that article I also found below and tried the solution they proposed (multi-target your WCF libraries....), but that doesn't help unfortunately:
https://github.com/dotnet/wcf/issues/5287
Perhaps I'm not searching in the right direction for a solution, but I thought let's provide you with this additional information. Hope it helps.
Beta Was this translation helpful? Give feedback.
All reactions