Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle store with multiple marketplaces #21

Open
sahat81 opened this issue Mar 1, 2019 · 1 comment
Open

Handle store with multiple marketplaces #21

sahat81 opened this issue Mar 1, 2019 · 1 comment

Comments

@sahat81
Copy link

sahat81 commented Mar 1, 2019

It should be possible to handle multiple marketplaces by defining marketplaceId as Array in store config file.

For example: in AmazonOrderList class, we can check if marketplaceId is Array then loop and set each ID to options[marketplaceId.Id.$x]

@Dhavalptel
Copy link

@sahat81 Exactly I've used same like this

'US' => [
			'merchantId'       => env('mwsMerchantId'),
			'marketplaceId'    => env('mwsMarketplaceId_US'),
			'keyId'            => env('mwsKeyId'),
			'secretKey'        => env('mwsSecretKey'),
			'mwsAuthToken'     => env('mwsAuthToken'),
			'amazonServiceUrl' => env('mwsAmazonServiceUrl_US'),
			'muteLog'          => env('mwsMuteLog', false),
		],
        'CA' => [
			'merchantId'       => env('mwsMerchantId'),
			'marketplaceId'    => env('mwsMarketplaceId_CA'),
			'keyId'            => env('mwsKeyId'),
			'secretKey'        => env('mwsSecretKey'),
			'mwsAuthToken'     => env('mwsAuthToken'),
			'amazonServiceUrl' => env('mwsAmazonServiceUrl_CA'),
			'muteLog'          => env('mwsMuteLog', false),
		],
        'UK' => [
			'merchantId'       => env('mwsMerchantId'),
			'marketplaceId'    => env('mwsMarketplaceId_UK'),
			'keyId'            => env('mwsKeyId'),
			'secretKey'        => env('mwsSecretKey'),
			'mwsAuthToken'     => env('mwsAuthToken'),
			'amazonServiceUrl' => env('mwsAmazonServiceUrl_UK'),
			'muteLog'          => env('mwsMuteLog', false),
		],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants