Jump to content

Different payment gateways for each currency


Recommended Posts

Hi there,

 

Here is what i need:

 

The user could select the currency on the shopping cart or i could enable it using a parameter on the url (something like ?currency=1), doesn't matter.

 

After click on the checkout button, only the payment gateways set to that currency should be available.

 

Same thing for the monthly payments.

Only the payments available for the client's default currency should be available on the invoices.

 

Does anyone knows how can I acomplish that?

 

Thanks in advance.

Link to comment
Share on other sites

  • WHMCS Support Manager

It's not quite so complicated, you'd edit viewcart.tpl and replace the current payment gateway code with:

{if $currency.code eq "USD"} 
<input type="radio" name="paymentmethod" value="paypal" id="pgbtn0"{if $selectedgateway eq "paypal"} checked{/if} /> <label for="pgbtn0">PayPal</label> 
{elseif $currency.code eq "GBP"} 
<input type="radio" name="paymentmethod" value="googlecheckout" id="pgbtn0"{if $selectedgateway eq "googlecheckout"} checked{/if} /> <label for="pgbtn0">Google Checkout</label> 
{/if} 

Making substitutions as necessary.

Link to comment
Share on other sites

It would be good if more control over which payment gateways was offered, would allow us to be a little more creative with what we offer.

 

For example having it so "Show gateway for GBP & USD but not EURO" and only show gateway if amount is more than £10 and less than £300.

 

I am looking at a variety of gateways at the moment and a lot of them are good for one type of payment but not another, so might have one which works out as an extra 2% on top, but only for payments in GBP where the amount is more than £8 for example.

 

Just a thought ;)

Link to comment
Share on other sites

  • 2 months later...

Hello everyone,

 

John,

So in your example, the top line says USD, to add another payment gateway for usd we just add another input ex.

 

<input type="radio" name="paymentmethod" value="paypal" id="pgbtn0"{if $selectedgateway eq "paypal"} checked{/if} /> <label for="pgbtn0">PayPal</label>

 

<input type="radio" name="paymentmethod" value="internetsecure" id="pgbtn1"{if $selectedgateway eq "internetsecure"} checked{/if} /> <label for="pgbtn1">internetsecure</label>

 

and then onto the else.... and then how do we include all other selected currencies instead of just grb

 

Mike

Edited by mhaskell
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