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

Add Ebanx terms #156

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add Ebanx terms #156

wants to merge 2 commits into from

Conversation

netojoaobatista
Copy link
Contributor

Add Ebanx's terms if the customer is a Brazilian buyer buying in an international store.

@@ -61,6 +67,8 @@ public function __construct(
$this->gatewayConfig = $gatewayConfig;
$this->storeId = $storeManager->getStore()->getId();
$this->encoder = $encoder;
$this->isInternational = $storeManager->getStore()->getCurrentCurrencyCode() !== self::BRAZILIAN_CURRENCY;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there was a little communication error.
The new message should be displayed for all Brazilian payments (and only when the country is br), regardless of the currency code.

This happens because this Magento Plugin is used for Cross Border only and all payments will be subject to foreign exchange transactions.

Obs: We do not need to worry about Local payments, as there is a specific Magento plugin for that.

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

Successfully merging this pull request may close these issues.

2 participants