Jump to content

How to set a logo to WHMCS default mail in payment gateway


zitu4life

Recommended Posts

Hello there

I have   4   Mail in payment gayeway and soon 3rd payment gateway to get it active...    I created them using default WHMCS one´s and just editing  names. I was thinking   if i could have them with  logo.
I saw an old   @brian! post  from 2018   related to paypal, but  after  look    deeper I guess it do not aply   for mail in payment.

There any other post outthere   to pointing me on the right direction, any inputs where to look at?

Edited by zitu4life
correct english words
Link to comment
Share on other sites

Here is an example:

<?php

# Main in Payment Gateway Module

if (!defined("WHMCS")) die("This file cannot be accessed directly");

function mailin_config() {

    $configarray = array(
     "FriendlyName" => array(
        "Type" => "System",
        "Value" => "Mail In Payment"
        ),
     "instructions" => array(
        "FriendlyName" => "Bank Transfer Instructions",
        "Type" => "textarea",
        "Rows" => "5",
        "Value" => "Bank Name:\nPayee Name:\nSort Code:\nAccount Number:",
        "Description" => "The instructions you want displaying to customers who choose this payment method - the invoice number will be shown underneath the text entered above",
        ),
    );

    return $configarray;

}

function mailin_link($params) {
    $code = '<p>'
        . nl2br($params['instructions'])
        . '<br />'
        . Lang::trans('invoicerefnum')
        . ': '
        . $params['invoicenum']
        . '</p>';

    return $code;

}

 

So to have logo displayed on Cart for those mail in payment, I assume   changes should start   first   on that WHMCS code 🙄

Edited by zitu4life
PS: Ignore this  post...I have managed to make it work...It was  a lot information   to understand, but I managed to make it work
Link to comment
Share on other sites

9 hours ago, zitu4life said:

PS: Ignore this  post...I have managed to make it work...It was  a lot information   to understand, but I managed to make it work

I would have thought the four gateways would have different names in WHMCS - that would be where I would have looked to display different logos for each... and if that's the case, you shouldn't need any additional coding.

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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated