That is not the exact same issue here. The sandbox square account works fine. When I change to the live square account, it pulls from Square the location options, I choose the location from the square options it should be set to and save and nopcommerce confirms it has saved the settings, but if I refresh the screen it has no location saved. thus the error when trying to process a transaction, Location is required, that would be Nopcom not sending a location to square when trying to process the transaction because it didn't save the location setting when the payment was being configured, maybe?
Log Entry 1 {Error while placing order. Error 1: Location is a required parameter for payment requests.}
Log Entry 2 {Nop.Core.NopException: Location is a required parameter for payment requests
at Nop.Plugin.Payments.Square.SquarePaymentMethod.ProcessPayment(ProcessPaymentRequest paymentRequest, Boolean isRecurringPayment)
at Nop.Plugin.Payments.Square.SquarePaymentMethod.ProcessPayment(ProcessPaymentRequest processPaymentRequest)
at Nop.Services.Payments.PaymentService.ProcessPayment(ProcessPaymentRequest processPaymentRequest) in E:\nopCommerce\sources\src\Libraries\Nop.Services\Payments\PaymentService.cs:line 187
at Nop.Services.Orders.OrderProcessingService.GetProcessPaymentResult(ProcessPaymentRequest processPaymentRequest, PlaceOrderContainer details) in E:\nopCommerce\sources\src\Libraries\Nop.Services\Orders\OrderProcessingService.cs:line 1387
at Nop.Services.Orders.OrderProcessingService.PlaceOrder(ProcessPaymentRequest processPaymentRequest) in E:\nopCommerce\sources\src\Libraries\Nop.Services\Orders\OrderProcessingService.cs:line 1535}
Log Entry 3 short message {Square payment error: Error calling ListLocations: {"errors":[{"category":"AUTHENTICATION_ERROR","code":"UNAUTHORIZED","detail":"Your request did not include an `Authorization` http header with an access token. The header value is expected to be of the format \"Bearer TOKEN\" (without quotation marks), where TOKEN is to be replaced with your access token (e.g. \"Bearer ABC123def456GHI789jkl0\"). For more information, see https://docs.connect.squareup.com/api/connect/v2/#requestandresponseheaders. If you are seeing this error message while using one of our officially supported client libraries, please report this to
[email protected]. "}]}.
Log Entry 3 Long message {Square.Connect.Client.ApiException: Error calling ListLocations: {"errors":[{"category":"AUTHENTICATION_ERROR","code":"UNAUTHORIZED","detail":"Your request did not include an `Authorization` http header with an access token. The header value is expected to be of the format \"Bearer TOKEN\" (without quotation marks), where TOKEN is to be replaced with your access token (e.g. \"Bearer ABC123def456GHI789jkl0\"). For more information, see https://docs.connect.squareup.com/api/connect/v2/#requestandresponseheaders. If you are seeing this error message while using one of our officially supported client libraries, please report this to
[email protected]. "}]}
at Square.Connect.Api.LocationsApi.ListLocationsWithHttpInfo()
at Square.Connect.Api.LocationsApi.ListLocations()
at Nop.Plugin.Payments.Square.Services.SquarePaymentManager.GetActiveLocations()