Skip to content

Commit 3fe915a

Browse files
committed
AmazonPay: fixed rare "client ID is a required parameter and is not set" when using the login function
1 parent d86ebe5 commit 3fe915a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* Categories: fixed missing cache invalidation when inheriting ACL or stores into child categories and products.
2323
* Link Builder: the selected media file was not applied.
2424
* Selecting an attribute of type date caused an error on the product detail page.
25+
* AmazonPay: fixed rare "client ID is a required parameter and is not set" when using the login function.
2526

2627

2728
## Smartstore 4.1.0

src/Plugins/SmartStore.AmazonPay/Services/AmazonPayService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,7 @@ public AuthorizeState Authorize(string returnUrl, bool? verifyResponse = null)
16651665

16661666
if (accessToken.HasValue())
16671667
{
1668-
var settings = _services.Settings.LoadSetting<AmazonPaySettings>();
1668+
var settings = _services.Settings.LoadSetting<AmazonPaySettings>(_services.StoreContext.CurrentStore.Id);
16691669
var client = CreateClient(settings);
16701670
var jsonString = client.GetUserInfo(accessToken);
16711671
if (jsonString.HasValue())

0 commit comments

Comments
 (0)