Skip to content

Payment methods in payments title in wrong language #7582

@Bartlomiejsz

Description

@Bartlomiejsz

Preconditions

  1. Magento 2.1.2
  2. Having at least two store views (e.g. EN and FR)
  3. Payment method configured with different title for each store view (e.g. Invoice - EN, Facture - FR)

Steps to reproduce

  1. Add some product to cart in EN store view.
  2. Go to checkout second step (Payment method title is correct - Invoice).
  3. Switch to FR store view.
  4. Go to second checkout step.

Expected result

  1. Payment method title should now be 'Facture'

Actual result

  1. The title is still 'Invoice', because of those code lines:
public function getAvailableMethods(\Magento\Quote\Api\Data\CartInterface $quote = null)
{
    $store = $quote ? $quote->getStoreId() : null;
    $methods = [];
    foreach ($this->paymentHelper->getStoreMethods($store, $quote) as $method) {

Metadata

Metadata

Assignees

Labels

Component: PaymentComponent: TranslationFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions