Hi Team,
We are in need for the module to convert almost any currency to the Paypal accepted currency. The site http://www.fashionjewelery.co.in displays currency in INR. When checkout using Paypal, the same INR value is sent to Paypal causing customers to pay almost 49 times(1USD~=49INR) more.

CommentFileSizeAuthor
#5 uc_paypal.zip9.61 KBragavendra_bn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rszrama’s picture

Priority: Critical » Normal
Status: Active » Postponed

Hmm... currency conversion isn't happening on the core level right now. Your best bet is to figure out how to work the the UC Multi Currency module. I don't believe it's designed for this specifically, but I do know that it must have an API for doing these sorts of conversions that should be reusable by your site.

I'm not going to mark this won't fix for now, but I am going to move it to postponed, as I don't see us doing anything to the PayPal module until the next version starts development.

ragavendra_bn’s picture

Nice to hear your reply rszrama......

Yep checking for the D6 release of the Multicurrency..............

If to late, ..........then may switch for prestashop.........

leetamus’s picture

subscribed.

ragavendra_bn’s picture

See below :)

ragavendra_bn’s picture

FileSize
9.61 KB

Hi rszrama,
With TRs, CpiLL and many other's help I was finally able to patch up uc_paypal.module to be able to accept any non-Paypal currency(INR in this case). I am grateful for their timely and needy assistance. This attachment is done on ubercart-6.x-2.0-beta4's module. Currency --> http://drupal.org/project/currency module is required to work.

For other than INR, replace INR in the module to your non-Paypal currency.

For Paypal registered under different currency, say you have registered for Canada Paypal, use CAD instead of USD.

NOTE: Tested only for Paypal WPS for 'single list items' and 'all items together'.

QP_Damien’s picture

I am new to drupal and so to ubercart and I have a design question linked to this original post (about the whole process)
I am working on the 6.x-2.0-rc7 version of Ubercart and I applied this hack to convert the amout sent to paypal from CNY to UD

Now, I wonder how I should manage the payment reception. The information sent back by paypal is in USD and my order is still in CNY.
The balance is computed with the total amount in RMB and the payment in USD, so e.g. for a total of 300 RMB (= 44 USD) the remaining balance is 300 - 44 = 256 RMB instead of 0

I am interrested in knowing how do you manage the order status and the payment reception / payment balance?

I tried to update the uc_paypal_ipn to convert the amout sent back by paypal, but:
1. I didn't succeed (the currency seems to be inaccessible (?))
2. I am not sure that it is the best way to do it. Actually, if I convert twice an amount, I am pretty sure that initial and final amout would be different (due to conversion rates and round).

If someone has some tips or soltutions to manage, please let me know.

For now I am thinking about a manual management of the status order and payment linked to paypal, but I am not sure that is the best way...

Thanks

Abhishek Sawant’s picture

Hi ragavendra,

Your patch works great when it goes from drupal site to paypal it converts INR to USD but after complete process it comes back to drupal site it still shows pending status in orders as if you have Rs.300 as a product price when it goes to paypal it converts to $3.26 USD perfectly as per yor patch but when it return back to drupal site after complete process it show as Rs.3.26 instead of $3.26 USD and pending status.

Can u help me out in it.

Regards
Abhishek

ragavendra_bn’s picture

Hey man,
Please keep in mind the version which is patched and the version you are using. If you are using the latest version then it may not work. SImilar changes need to be made in the new version.

Abhishek Sawant’s picture

Version: 6.x-2.0-beta3 » 6.x-2.0-beta4
Status: Postponed » Active

Hi ragavendra,

I m using ubercart 6.x-2.2 , but i have degraded my module to your module as ubercart 6.x-2.0-beta4 but still it show pending status in orders as i mentioned above in comment #7 what problem i m facing even using ubercart 6.x-2.0-beta4. Do it also required multicurrency to be installed?

Currently i am using Currency module and ubercart 6.x-2.0-beta4.

longwave’s picture

Status: Active » Closed (duplicate)

#1097668: Multicurrency support is the best option for this right now, though it doesn't convert currencies for PayPal yet.

timezero’s picture

Is there any solution to this issue that is compatible with the latest version of Ubercart?

sin’s picture

Initial attempt to do the conversion form RUR to USD before Paypal WPS and backward after Paypal IPN:
http://drupal.org/sandbox/sin/1797676

It supports Drupal 7 + Ubercart 3.

More general multicurrency version may depend on http://drupal.org/project/currency and some patches to it to add more exchange rate providers.

ragavendra_bn’s picture

Assigned: Unassigned » ragavendra_bn
Issue summary: View changes
Status: Closed (duplicate) » Fixed

thanks sin for your help for the D7..........I was able to do it similarly with xe dot com's xml for INR - Indian rupee. Shipping amount was sent directly and may be the tax too to paypal. making the sum too big. I did fix them and now it seems to work nicely.........

TR’s picture

Assigned: ragavendra_bn » Unassigned
Status: Fixed » Closed (duplicate)

Restoring status.