Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

PayPal Help Needed

MridulMridul Member
edited September 2015 in Help

Dear Members,

I am having my whmcs installed with default currecny as INR.

However, the PayPal account has USD as default currency ( INR cant be added as the second currency , its not supported ) .

I came across this module that does the job : https://forum.whmcs.com/showthread.php?14370-Modules-for-INR-to-USD-currency-Conversion-in-Paypal-Gateway

<?php 

############################### 
##Realizado por OportHost.com and Customized By Linu for Indian Users## 
###########GRATIS############## 

$GATEWAYMODULE["paypalpesosname"]="paypalpesos"; 
$GATEWAYMODULE["paypalpesosvisiblename"]="PayPal INR to USD"; 
$GATEWAYMODULE["paypalpesostype"]="Invoices"; 

function paypalpesos_activate() { 
defineGatewayField("paypalpesos","text","cotiza","0.00","Exchange Rate","",""); 
defineGatewayField("paypalpesos","text","mail","","PayPal Email","",""); 
defineGatewayField("paypalpesos","yesno","testmode","","Test Mode","",""); 
} 

function paypalpesos_link($params) { 
    # Gateway Specific Variables 
    $gatewaycotiza = $params['cotiza']; 
    $gatewaymail = $params['mail']; 
    $gatewaytestmode = $params['testmode']; 
    # Invoice Variables 
    $invoiceid = $params['invoiceid']; 
    $description = $params["description"]; 
    $amount = $params['amount']; 
    $duedate = $params['duedate']; 
    # Client Variables 
    $firstname = $params['clientdetails']['firstname']; 
    $lastname = $params['clientdetails']['lastname']; 
    $email = $params['clientdetails']['email']; 
    $address1 = $params['clientdetails']['address1']; 
    $address2 = $params['clientdetails']['address2']; 
    $city = $params['clientdetails']['city']; 
    $state = $params['clientdetails']['state']; 
    $postcode = $params['clientdetails']['postcode']; 
    $country = $params['clientdetails']['country']; 
    $phone = $params['clientdetails']['phone']; 
    # System Variables 
    $companyname = $params['companyname']; 
    $systemurl = $params['systemurl']; 
    $currency = $params['currency']; 
    # End of Variables 

    # se le suman sus comisiones de paypal 
    $presioparcial = $amount / $gatewaycotiza; 

    $presiofinal = round( $presioparcial * 100) / 100; 


    $code = '     
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
    <input type="hidden" name="cmd" value="_xclick"> 
    <input type="hidden" name="business" value="'.$gatewaymail.'"> 
    <input type="hidden" name="item_name" value="Web Hosting Invoice # '.$invoiceid.'"> 
    <input type="hidden" name="item_number" value="'.$invoiceid.'"> 
    <input type="hidden" name="amount" value="'.$presiofinal.'"> 
    <input type="hidden" name="no_shipping" value="0"> 
    <input type="hidden" name="no_note" value="1"> 
    <input type="hidden" name="currency_code" value="USD"> 
    <input type="hidden" name="lc" value="IN"> 
    <input type="hidden" name="bn" value="PP-BuyNowBF"> 
    <input type="image" src="https://www.paypalobjects.com/WEBSCR-540-20080916-1/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="Secured Payment Link"> 
    <img alt="" border="0" src="https://www.paypal.com/es_XC/i/scr/pixel.gif" ="1" height="1"> 
    </form>'; 

return $code; 

} 

?>

But its not working. The issues :

  • It doesnt redirect to payment gateway
  • "check out" button is missing in Invoice display and checkout page ( it says a php error : "function missing" )
  • Where do i enter my paypal and conversion rate ( I guess its the "defaultgatewayfield ?? )

Plz help.

Comments

  • AlexanderMAlexanderM Member, Patron Provider, Top Host
    <input type="image" src="https://www.paypalobjects.com/WEBSCR-540-20080916-1/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="Secured Payment Link"> 
    

    That 'pay now' button is a 404 error

    Not Found

    The requested URL /WEBSCR-540-20080916-1/en_US/i/btn/btn_paynowCC_LG.gif was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Thanked by 1Mridul
  • @AlexanderM said:

    That 'pay now' button is a 404 error

    Not Found

    The requested URL /WEBSCR-540-20080916-1/en_US/i/btn/btn_paynowCC_LG.gif was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    I have set the whmcs to redirect to the payment page, but the system shows just the invoice and not the paypal login page as it should.

  • With the USD going steady against a lot of foreign this year, i would take usd instead of ind if i were you for business. Just my opinion.

  • I believe you can add other currencies to WHMCS and on the payment options just have it convert the payments to your currency, I believe that is possible or it might only be for converting other currencies to USA im not too sure but its worth a check.

  • @cosmicgate said:
    With the USD going steady against a lot of foreign this year, i would take usd instead of ind if i were you for business. Just my opinion.

    Actually its not about USD or INR. If you are from India, you CANNOT accept paypal payments from other INDIANs. So using a US account becomes becomes an obvious choice.

    Anyways , i have solved the issue.

  • cfgguycfgguy Member, Host Rep

    Mridul said: Actually its not about USD or INR. If you are from India, you CANNOT accept paypal payments from other INDIANs. So using a US account becomes becomes an obvious choice.

    Getting A US paypal account if you stay in india is illegal. If paypal gets to know, which they will eventually, your funds will be seized and get a payment gateway from india to cater indian customers. Their fees is less then paypal :)

    Thanked by 1netomx
  • MetroVPS_NMPMetroVPS_NMP Host Rep, Veteran

    @Mridul said:

    How did you solve it, May we know ? :-)

  • @IgniteServers said:
    I believe you can add other currencies to WHMCS and on the payment options just have it convert the payments to your currency, I believe that is possible or it might only be for converting other currencies to USA im not too sure but its worth a check.

    That was THE solution actually. We set the primary currency as INR , added a second currecny as USD then Set paypal to "convert to USD" and it worked.

    @cfgguy said:

    Well, we have our partners from US, whose "Legit" paypal will be used.

  • @Mridul said:

    Glad you found a solution man.

Sign In or Register to comment.