Gateway title for dropdowns, tables, templates etc #11

jedateach opened this Issue Jun 25, 2012 · 3 comments


None yet

2 participants


We need to choose a place/mechanism for storing and retrieving the name/title of a payment method.

We'll want this name to be translatable, so the actual name will be stored in payment_method/lang/en.yml

Perhaps a function on Payment_Gateway that gets the translation liike this: _t("PaypalPayment.NAME","Pay Pal"), or more generic:

The function that produces the list of supported methods will make use of this name.

It might be a good idea to have a hook in this method so that developers can alter the string that is returned easily.


We've solved this with adding title to the configuration.
I guess we can provide translations by using _t($method.".TITLE",$title).


In @rydandao 1.0 branch we can specify titles, but we still need to make titles translatable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment