0

I have a payment method instance from which I am able to get the title with

$sale->getPayment()->getMethodInstance()->getTitle()

Now, I would like to get the title of this payment method as set in a specific store.

How can I achieve it?

1 Answer 1

1

Try with this :

$sale->getPayment()->getMethodInstance()->getConfigData('title', $storeId);

Where you should be having your desired store ID in $storeId variable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.