I fixed it with just added the below code snippet in Plugins > Nop.Plugin.Payments.Square > SquarePaymentMethod.cs > GetPaymentInfo method and it worked fine.
I am working on the Square UP payment plugin. My Square UP account is setup properly. I am following proper instruction to setup the plugin into nopcommerce. But I am getting error "Location is a required parameter for payment requests". Can any one please help me. I read all the post in the current forum and change the API version to older one, but no luck. Thanks in advance.
I am working on the Square UP payment plugin. My Square UP account is setup properly. I am following proper instruction to setup the plugin into nopcommerce. But I am getting error "Location is a required parameter for payment requests". Can any one please help me. I read all the post in the current forum and change the API version to older one, but no luck. Thanks in advance.
Hi just mane change in code as last comment of Alexander. It will help you
Can you check on configuration page (http://yourstore.com/Admin/PaymentSquare/Configure), is there Business location is selected or not?
if it selected then go to advance setting (http://yourstore.com/Admin/Setting/AllSettings) and search setting squarepaymentsettings.locationid
If this value is set 0 or null, then you've to set id of your business location. For get business location id, Go to Square payment's configuration page (http://yourstore.com/Admin/PaymentSquare/Configure) Open inspect element and copy value of your selected business location.
Now set this value to setting squarepaymentsettings.locationid from advance setting.
Got VS and the code still no luck when I add this code as suggested..this is my only hangup updating to 4.10 It shows locations SF toffee coffee in sandbox..
I fixed it with just added the below code snippet in Plugins > Nop.Plugin.Payments.Square > SquarePaymentMethod.cs > GetPaymentInfo method and it worked fine.