Jump to content

How to to change PayPal payment image for the "Submit Payment" button


turner2f

Recommended Posts

For those people wanting to know how to change the PayPal payment image for the "Submit Payment" button, here is a solution...

When choosing to pay with PayPal there is a button in the form of an image.

ISSUE: This button looks more like a badge, rather than a "clickable" button

Not everyone making a payment would know to click on this image so they can pay.

The PayPal "Submit Payment" button is currently referencing a URL at  https://www.paypalobjects.com/en_US/i/bnr/horizontal_solution_PP.gif 

 

change_paypal_button_1.jpg
 

 

And we want to use our own custom PayPal graphic like...

change_paypal_button_2.jpg

 

HERE'S WHAT TO DO ...

STEP 1 -

Go to...

~/components/gateways/nonmerchant/paypal_payments_standard/views/default/

And open...

the " process.pdt " file.

It contains both buttons URL's. For recurring, and non-recurring.

Simply update the URLs to the new button image files.

 

STEP 2 -

The URL you will alter will look something like...

   $button_url = $recurring
        ? 'https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif'
        : 'https://www.paypalobjects.com/en_US/i/bnr/horizontal_solution_PP.gif';

    $this->Form->fieldImage(
        'submit',

 

Just change them to something like ...

   $button_url = $recurring
        ? 'http://www.mywebsite.com/my_PP_btn.jpg'
        : 'http://www.mywebsite.com/my_PP_btn.jpg';

    $this->Form->fieldImage(
        'submit',

 

==================

All DONE ! :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...