Convert Euro currency to US Dollar amount and update payment gateway amount to charge US Dollars. Site uses EU currency throughout the cart process, Authorize.net processes CC transactions in USD only.
Current setup: On submission of form a php page is called containing the order total amount and redirects to Authorize.net checkout form, the value populated is the Euro value without conversion.
Desired Solution: On submission of form before redirect to Authorize.net, a shadow box needs to appear showing the user there is a currency conversation occurring. Then after a set time of 3 seconds the shadow box closes, the function to convert currency is called and XML updated for Authorize.net, and then redirect to Authorize.net with US price appearing in form.
1. on submitting form show shadow box
2. show shadow box that is timed out and then closes
3. submit form
A. Update amount passed to for billing
B. calling PHP function to redirect to Authorize.net with new set amount
4. Redirect shows US based currency