there :) I have been facing a problem with currency

Hi there :slight_smile:

I have been facing a problem with currency conversion before the customer redirects to paypal. My store currency is SAR and when the customer is redirected to paybal website it displays the same amount but in USD which is my currency in Paypal.

I have been looking for a solution here in this great community for so long but no luck .

Idea : what if I play with the amount that is given to paypal before the customer goes to Paypal website for payment ? I tried dividing the amount by 3.75 (exchange rate --> 1 USD = 3.75 SAR fixed)

the code below :


//set final amount
$_SESSION['final_amt'] = 0;
$_SESSION['store_count'] = 0;

for ($i=0; $i<10; $i++) {
if (!isset($result['PAYMENTREQUEST_'.$i.'_AMT'])) {
continue;
}

$_SESSION['final_amt'] += (($result['PAYMENTREQUEST_'.$i.'_AMT'] ));
$_SESSION['final_amt'] = $_SESSION['final_amt'] / 3.75; $_SESSION['store_count']++;

}


Any help please and thanks in advanced