VirtueMart 1.1.x [ Old version - no longer supported ] > PayPal / PayPal Pro VM 1.1
MOD to resolve "payments not accepted in USD"
w259lkt:
FOR VIRTUEMART 1.1.x (tested only on VIRTUEMART 1.1.2)
THIS IS A VERSION BASED ON PAYPAL - Currency Converter by Deneb RELEASED for VirtueMart 1.0.x
DO YOU NEED THIS?
--------------------------------
If you use a shop currency that is not one of these:
U.S. Dollar (USD)
Australian Dollar (AUD)
Canadian Dollar (CAD)
British Pounds Sterling (GBP)
Japanese Yen (JPY)
Euro (EUR)
...AND you wish to accept PayPal payments.
...BUT you can install this anyway and just disable it from the config.
...OR Dev Team can merge this into the next release.
--------------------------------
This payment Method:
->Converts the cart Total Amount and Shipping charges to one of the supported currencies that PayPal allows.
TIP: The allowed currencies are viewable in your PayPal account, under 'Profile' > Financial Information - 'Currency Balances' links.
TIP: For more payment receiving options related to currency, See 'Profile' > Selling Preferences - 'Payment Receiving Preferences' (make sure you are not blocking payments that you do not want blocked!)
->Shows a warning to the customer that the currency will be different in PayPal.(configurable!)
->Updates the payment variables sent to PayPal (Post Variables) with the new values. (Or in the case of customer viewing the order from 'Account Maintenance'...it formats the PayPal button correctly.
->Adds PayPal config option to:
=> Enable/Disable the converter
=> Set the supported PayPal currencies
=> Select the PayPal currency to use.
=> Enable/Disable a currency convert warning on Order View
=> Set the Pre text on the warning (HTML OK)
=> Set the Post text on the warning (HTML OK)
One thing to think about...
The current functionality of VM allows customers to checkout with PayPal payment selected, and not immediately fulfill payment.
Also, the currency converter is pulled from daily exchage rates and converts using those rates on the fly.
...The PayPal button on the order.
...Exchange Rates change.
So, an order where the PayPal payment is still 'pending' (whether marked as such or not) could be converted later at a
substantially different rate than when purchsed. This may / may not be advantagous / disadvantagous to the vendor / customer.
--------------------------------
Install Steps:
1. First, back-up some files:
a. PayPal class files
->folder: /administrator/components/com_virtuemart/classes/payment/
->file: ps_paypal.php
->file: ps_paypal.cfg.php
b. Language file
->folder: /administrator/components/com_virtuemart/languages/common
->file: english.php (and romanian.php for romanian users)
2. Figure out if you have any hacks currently applied to your PayPal files.
You may or may not need to merge them into the code supplied with this hack.
3. Back-up your PayPal - 'Payment Extra Info'
->Login to Joomla admin and go to the VirtueMart admin.
->Select 'Store' > 'List Payment Methods' menu item,
->Find PayPal method on the list and click it's name to Edit.
->Go to 'Configuration' tab
->Copy all text in the 'Payment Extra Info' textbox at the bottom.
->Paste it into a text editor and save it somewhere local.
4. Figure out if you have any hacks currently applied to your PayPal 'Payment Extra Info' code.
You may or may not need to merge them into the code supplied with this hack.
5. Upload the language files and overwrite with the file supplied in this attached archive: english.php (and romanian.php for romanian users)
6. Upload the class files (ps_paypal.php, ps_paypal.cfg.php) to folder: /administrator/components/com_virtuemart/classes/payment/
7. Configure your new PayPal method, and 'Payment Extra Info'
->Login to Joomla admin and go to the VirtueMart admin.
->Select 'Store' > 'List Payment Methods' menu item.
->Find PayPal on the list and click name to Edit.
->Go to 'Configuration' tab.
->Re-enter your old settings (look in your backed-up config file), and Choose the new settings you want for currency converter section.
->Copy all text from the file supplied in this attached archive (extrainfonew.txt)
and Paste it into the 'Payment Extra Info' textbox at the bottom.
->Click the SAVE button.
8. Test it.
bigheadmall:
Thank You very much ,I Find long time for Method Covert currency
sundar:
i did al those thisngs as u said but still am getting
This recipient does not accept payments denominated in WS_Error_XClick_Pref_Foreign_Currency. Please contact the seller and ask him to update his payment receiving preferences to accept this currency.
dragaodepapel:
I'm getting a problem like that too, but my store works with Brazilian Real (BRL) and US Dolar (USD). PayPal don't have BRL in their accepted currencies list.
So, I follow the steps above, but I found a little problem here.
The vendor_currency in my case is "BRL", and I put in options that PayPal work with USD. In this case, the conversion works very, very well. But when the order is made with "USD" currency, selected by user, it's try to convert the value again, because it's using the vendor_currency, not the order currency.
So, I changed the file from w259lkt to use the order currency. The file is attached.
And, it's only the problem. Most of my orders is for downloadable goodies, so there is no shipping, so I make another change when it's verify if amount AND shipping isn't null. In my case, the shipping is.
So, when an order is made with BRL, this will convert to USD the value; and when an order is made with USD, the value remain correct.
Well, my english isn't so good, but I think that I can show the idea.
Reincha:
i have a problem: everything works except when customer pays i receive e-mail:
----
PayPal IPN Error: Order Total/Currency Check failed:
During a paypal transaction on your site the received amount didn't match the order total.
Order ID: 49.
Order Number: 68_d2891ba92e9c09f90a00359d71673.
The amount received was: 0.15 EUR.
It should be: 0.11 LVL.
---------
Everything is correct 0.11 LVL is 0.15EUR , i receive correct amount, but order status stays the same
Hope you can help!
Thanks
Navigation
[0] Message Index
[#] Next page
Go to full version