Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Add the ability to handle Stripe Multiple API Key based on currency available.
Configuration
Refer to the existing configuration options listed on ai-payments aimeos documentation
We added 1 static configuration (built-in/merged with existing config):
Accept 0/1, use 1 to enable multiple stripe account
We also added 2 dynamic configuration options (inserted manually through the admin panel)
example option name: apiKey_AUD
value can be filled by the secret API key string from your Stripe account.
example option name: publishableKey_AUD
value can be filled by publishable API key string from your Stripe account.
Behavior
2 dynamic config values will be read by the system if multiCurrency was enabled. If enabled but system doesn’t detect related apiKey with currency in the shopping cart, system will use the default Stripe account (default value from apiKey and publishableKey)
Additional Notes
currency_code values taken from what aimeos locale currencies list (ISO 4217)