Jump to content

invoice paypal payment button. is possibel to show all the buttons and no dropmeny?


Anders

Recommended Posts

Hi guys,

 

i am using to payment gateways paypal and payson. when i customer going to pay an d invoice they get an option top right with dropmeny to choose there paymen gateway.

 

is it possible to show all the buttons instead of a dropmeny?

 

Warm regards Anders

Link to comment
Share on other sites

that setting will disable one of the payment gateways.

 

Hi Anders,

 

I don't think it does........

 

Clients Choose Gateway

Enabling will display a dropdown menu on the invoice allowing customers to choose which gateway they use to pay each invoice. When disabled each invoice will use the gateway the client chose upon signup.

 

However, moving from the dropdown to individual buttons would involve some coding to the files that produce the PDF invoice.

Link to comment
Share on other sites

Hi Anders,

 

Yes, exactly. So when you tick the box they will have a drop down menu to choose from whichever payment gateways you have enabled.

 

However, if you do not want a drop down menu that is another issue....

 

The code that calls this is in your viewinvoice.tpl in whatever template you are using. For me (on 5.0.3) it is lines 29 to 33:

 

{if $allowchangegateway}

<form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}">{$gatewaydropdown}</form>

{else}

{$paymentmethod}<br />

{/if}

 

However, this is something I've not done before but I guess you may have to look at the API functionality e.g. http://docs.whmcs.com/API:Get_Payment_Methods

Link to comment
Share on other sites

  • 1 year later...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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