Edit the "Send payment via PayPal" button

Edit the "Send payment via PayPal" button

by Walter Byrd -
Number of replies: 0

Moodle 3.7.7 - PayPal Plugin.

PayPal will accept credit cards, but that is made evident using the PayPal plugin.

I would like to edit this button to something like "Send payment via PayPal or Credit Card."

I have done this before, with a much earlier version of Moodle. But the way I did that does not appear to be valid anymore. Here is what I did before:

- Site administration => Language => Language customization => en
    - component: enrol_paypal
    -  string identifier: sendpaymentbutton
    - change the value from "Send payment via PayPal" to "Send payment via PayPal or Credit Card"

Now, when I get to "Language customization"  my only option is to load some language package, which seems to be very large. 

I tried going into the the file: /enrol/paypal/lang/en/enrol_paypal.php

and changing the line::

$string['sendpaymentbutton'] = 'Send payment via PayPal';

to

$string['sendpaymentbutton'] = 'Send payment via PayPal or Credit Card';

but that does not seem to be working.

I was also able to change the PayPal logo to a logo that included credit cards accepted by PayPal. That still seems to work.

The way I did that was:

- edit the   /enrol/paypal/enrol.html file.
    - change the line
        - <p><img alt="xxxxxxxx" src="hxxps://www.paypal.com/en_US/i/logo/PayPal_mark_60x38.gif">

Then change the .gif file to different image.

Average of ratings: -