Hi, this is an excellent module! Works great and took me all of 10 minutes to install, configure, and send a test payment, thank you!

Question: How can I rename the Payment from "Stripe" to simply "Credit Card" on the front-end checkout form? If I change it in Home » Administration » Store » Configuration » Payment methods / Settings it only changes for the config screen, not the front end checkout form. So what's the best way to change this?

Thank you,
--Tony

Comments

greggles’s picture

Category: support » bug

Seems like a bug to me. I don't see a way to do it in the code, so it may require a hook_form_alter.

bradhawkins’s picture

The quick fix would be to edit commerce_stripe.module line 20:

'title' => t('Stripe'),

to

'title' => t('Credit Card'),

rowbotony’s picture

Hi, thanks, ok I copied the module over to my sites/mysite/modules/custom directory and changed the string, just wanted to make sure I didn't miss anything elsewhere that would have allowed me to change it via the UI. Thanks again, my new commerce site is going live in a few hours!

mrconnerton’s picture

Component: User interface » Code
Status: Active » Needs review
StatusFileSize
new470 bytes

implements the changes in #2

iler’s picture

Category: bug » feature

This is really not a bug but will see a nice way to define the payment type name in the UI.

thekenshow’s picture

There also the string overrides approach using settings.php:

$conf['locale_custom_strings_en'][''] = array(
  'Stripe'      => 'Visa | Mastercard | American Express',
);
janip’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev

Pushed the following to 7.x-1.x-dev:

"Added an option for defining a custom display title for Stripe payment method."
http://drupalcode.org/project/commerce_stripe.git/commit/e57133d

greggles’s picture

@janip - does that mean this status should be set to fixed?

iler’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hbochner’s picture

Category: feature » support

This patch seems like it should be exactly what I want, but it's not working for me.
I've set the display title to "Stripe.com credit card processing" in two places, and
that shows up nicely in the administrative interface.

But the checkout form still says just "Stripe", which is meaningless to users.
What am I doing wrong?

BenK’s picture

Status: Closed (fixed) » Active

Re-opening this issue.... I'm experiencing the same problem as in #11. Even when the "Stripe" string is changed in the user interface, the label in the pane does not change.

--Ben

mrconnerton’s picture

I didn't have time to try and fix the issue but a quick work around is:

function mymodule_commerce_payment_method_info_alter(&$payment_methods) {
  $payment_methods['commerce_stripe']['title'] = "Credit Card";
}
DanielJohnston’s picture

Not quite sure what the fix was meant to have fixed, but I can't seem to change anything that affects the display of 'Stripe' as the payment option.

iler’s picture

Status: Active » Fixed

Found the bug in here and fixed it (finally). Sorry for the really long delay in fixing this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.