Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Header Image to Paypal Express.

Issue 474.  Not a bug, but useful all the same for branding purposes.
Make a new image called express.png and save into /images/ (max size 750*90)
This will show in your paypal payment screen as a "logo".
  • Loading branch information...
commit a5776a47d29f43d1a272b190bb5c02e0dd0c80b9 1 parent 1f33ed8
@gburton authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 catalog/includes/modules/payment/paypal_express.php
View
4 catalog/includes/modules/payment/paypal_express.php
@@ -25,6 +25,9 @@ function paypal_express() {
$this->public_title = MODULE_PAYMENT_PAYPAL_EXPRESS_TEXT_PUBLIC_TITLE;
$this->description = MODULE_PAYMENT_PAYPAL_EXPRESS_TEXT_DESCRIPTION;
$this->sort_order = MODULE_PAYMENT_PAYPAL_EXPRESS_SORT_ORDER;
+
+ $this->icon = 'express.png'; // MAX 750 x MAX 90 pixels
+
$this->enabled = ((MODULE_PAYMENT_PAYPAL_EXPRESS_STATUS == 'True') ? true : false);
if ((int)MODULE_PAYMENT_PAYPAL_EXPRESS_ORDER_STATUS_ID > 0) {
@@ -368,6 +371,7 @@ function setExpressCheckout($parameters) {
$params['USER'] = MODULE_PAYMENT_PAYPAL_EXPRESS_API_USERNAME;
$params['PWD'] = MODULE_PAYMENT_PAYPAL_EXPRESS_API_PASSWORD;
$params['SIGNATURE'] = MODULE_PAYMENT_PAYPAL_EXPRESS_API_SIGNATURE;
+ $params['HDRIMG'] = DIR_WS_IMAGES . $this->icon;
} else {
$params['SUBJECT'] = MODULE_PAYMENT_PAYPAL_EXPRESS_SELLER_ACCOUNT;
}
Please sign in to comment.
Something went wrong with that request. Please try again.