Square Payment not working with 4.10

1 year ago
I fixed it with just added the below code snippet in Plugins > Nop.Plugin.Payments.Square > SquarePaymentMethod.cs > GetPaymentInfo method and it worked fine.


          
 if(!_squarePaymentSettings.UseSandbox)
               paymentRequest.CustomValues.Add("Location", _squarePaymentSettings.LocationId);
1 year ago
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.
1 year ago
live2ride wrote:
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
1 year ago
Also you can check this post
1 year ago
I have added the code as mention. But still, no luck.
1 year ago
Hi,

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.

Hope this will work in your store.
1 year ago
I had to manually set squarepaymentsettings.accesstoken for the locations to show up in the dropdown. once I did that it works
1 year ago
Any fix if only using web code, signed up for square from nop link. no plugin update for 4.10?

need this badly.
1 year ago
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..

can't go to Vegas till its fixed :)

[email protected] wrote:
I fixed it with just added the below code snippet in Plugins > Nop.Plugin.Payments.Square > SquarePaymentMethod.cs > GetPaymentInfo method and it worked fine.


          
 if(!_squarePaymentSettings.UseSandbox)
               paymentRequest.CustomValues.Add("Location", _squarePaymentSettings.LocationId);
1 year ago
gvanosdol wrote:
I had to manually set squarepaymentsettings.accesstoken for the locations to show up in the dropdown. once I did that it works



this worked f0r me manually entered using squarepaymentsettings. for lookup

Thanks
Vegas here I come>>>