Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | uc_paypal.zip | 9.61 KB | ragavendra_bn |
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedHmm... 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.
Comment #2
ragavendra_bn CreditAttribution: ragavendra_bn commentedNice to hear your reply rszrama......
Yep checking for the D6 release of the Multicurrency..............
If to late, ..........then may switch for prestashop.........
Comment #3
leetamus CreditAttribution: leetamus commentedsubscribed.
Comment #4
ragavendra_bn CreditAttribution: ragavendra_bn commentedSee below :)
Comment #5
ragavendra_bn CreditAttribution: ragavendra_bn commentedHi 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'.
Comment #6
QP_Damien CreditAttribution: QP_Damien commentedI 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
Comment #7
Abhishek Sawant CreditAttribution: Abhishek Sawant commentedHi 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
Comment #8
ragavendra_bn CreditAttribution: ragavendra_bn commentedHey 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.
Comment #9
Abhishek Sawant CreditAttribution: Abhishek Sawant commentedHi 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.
Comment #10
longwave#1097668: Multicurrency support is the best option for this right now, though it doesn't convert currencies for PayPal yet.
Comment #11
timezero CreditAttribution: timezero commentedIs there any solution to this issue that is compatible with the latest version of Ubercart?
Comment #12
sin CreditAttribution: sin commentedInitial 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.
Comment #13
ragavendra_bn CreditAttribution: ragavendra_bn commentedthanks 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.........
Comment #14
TR CreditAttribution: TR commentedRestoring status.