close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Paypal in euro

Thread began 12/02/2009 10:08 am by info321189 | Last modified 12/06/2009 12:51 pm by info321189 | 1018 views | 8 replies |

info321189

Paypal in euro

Hello, about fast paypal payment I test the website with sandbox but in these days when I try to pay in test mode paypal try to redirect me to a page that doesn't exist.
By the way my question is about the store currency, I use euro because my store is in europe.
I see the pdf about currency conversion, but in checkout page from line 36 to 83 I see this code:

<?php
$WA_PP_ECO_SetResult = WA_PP_ECO_SOAPObject();
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) {
$WA_PP_ECO_Set_params = array();
$WA_PP_ECO_Set_params[0] = array();
$WA_PP_ECO_Set_params[1] = array();
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "Username";
$WA_PP_ECO_Set_params[1][$nextIndex] = "".$WAGLOBAL_Paypal_User ."";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "Password";
$WA_PP_ECO_Set_params[1][$nextIndex] = "".$WAGLOBAL_Paypal_Password ."";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "Signature";
$WA_PP_ECO_Set_params[1][$nextIndex] = "".$WAGLOBAL_Paypal_Signature ."";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "System";
$WA_PP_ECO_Set_params[1][$nextIndex] = "US";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "Currency";
$WA_PP_ECO_Set_params[1][$nextIndex] = "USD";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "OrderTotal";
$WA_PP_ECO_Set_params[1][$nextIndex] = "".$WA_Store_Cart->GrandTotal() ."";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "ReturnURL";
$WA_PP_ECO_Set_params[1][$nextIndex] = "".$WAGLOBAL_Root_URL ."pp_confirm.php";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "CancelURL";
$WA_PP_ECO_Set_params[1][$nextIndex] = "".$WAGLOBAL_Root_URL ."pp_cancel.php";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "PaymentAction";
$WA_PP_ECO_Set_params[1][$nextIndex] = "Authorization";
$nextIndex = count($WA_PP_ECO_Set_params[0]);
$WA_PP_ECO_Set_params[0][$nextIndex] = "UseSandbox";
$WA_PP_ECO_Set_params[1][$nextIndex] = "".$WAGLOBAL_Paypal_Sandbox ."";

$WA_PP_ECO_SetResult = WA_PP_ECO_Set_Post($WA_PP_ECO_Set_params);
if ($WA_PP_ECO_SetResult->isError) {
if ("pp_checkout_failure.php" != "") {
header("Location: ". "pp_checkout_failure.php"); exit;
}
}
else {
$WA_Store_Cart->redirStr = $WA_PP_ECO_SetResult->ECOServer;
}
}
?>

I need to modify the line 53 ( $WA_PP_ECO_Set_params[1][$nextIndex] = "US";) and line 56 ($WA_PP_ECO_Set_params[1][$nextIndex] = "USD";) ?

Also I need to modify the file (WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php) ?

My store is in Italy.

Sign in to reply to this post

Jason ByrnesWebAssist

The Redirect will be based on the $WAGLOBAL_Root_URL setting in the WA_Globals file.

The page paypal will use for the redirect will be:
$WAGLOBAL_Root_URL + pp_confirm.php


so if you set $WAGLOBAL_Root_URL to:
$WAGLOBAL_Root_URL = "http://mysite.com/"


paypal will redirect to:
pp_confirm.php

if paypal is redirecting to a page that does no exist, double check that you have configured the $WAGLOBAL_Root_URL correctly.


you do not need to change:
WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php


to change to usseing euro, you only need to change this line in that code:
$WA_PP_ECO_Set_params[0][$nextIndex] = "Currency";
$WA_PP_ECO_Set_params[1][$nextIndex] = "USD";

Sign in to reply to this post

info321189

Hello Jason, thankyou.
To change in euro I need to change the 'USD' value to 'EUR' ?
About $WA_PP_ECO_Set_params[1][$nextIndex] = "US" I need to change the 'US' vaue to UK or IT (for Italy) ?

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, change USD to EUR.


no, do not change:
$WA_PP_ECO_Set_params[1][$nextIndex] = "US"

you need to continue using the US paypal system

Powerstore does not support Paypal Payments pro UK Only Paypal Payments Pro US.

This means that your paypal merchant account must be setup using payPal US.

Sign in to reply to this post

info321189

Hello, if my customer have setup paypal in Italian ? Powestore doesn't work ? I can do something ?

Sign in to reply to this post

Jason ByrnesWebAssist

No, PowerStore will not function with any other paypal system than paypal payments pro US.


They will need to sign up for a US Paypal merchant account.

Sign in to reply to this post

info321189

Hello Jason, there are some differences if my customer have a Italian paypal merchant account ?
I have WA super suite to make changes.

Regards

Sign in to reply to this post

Jason ByrnesWebAssist

paypal Italian uses a different API that is not supported by PowerStore.

Only Paypal Payments Ppro US is supported by PowerStore.

ecart also does not offer support for paypal Italian, only PayPal Payments Pro US and Paypal Payments Pro UK.

Sign in to reply to this post

info321189

Thankyou very much Jason now I understand.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...