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

Payments Pro and Sandbox testing

Thread began 4/26/2010 1:43 pm by ben_bradley348417 | Last modified 8/27/2014 1:24 pm by Jason Byrnes | 3536 views | 22 replies |

ben_bradley348417

Payments Pro and Sandbox testing

PS2

After waiting 2 months to finally work out how to get a paypal account approved for my client, I am now back trying to finally finish this store. Just one of the things that wasn't mentioned in the purchase, lol!

Anyhow, im now testing the site - index.php

My problem is when a purchase has been made, in the '/Admin/orders_Update.php?OrderID=1' page, it is asking me to send confirmation and the tracking number, but it wont let me as it keeps on asking me an error on the phone number "Please enter a phone number to call with shipping quesions." I put 11 digits in, it goes green, blank fax, and update, and keeps coming up with the same error.

At this point, I still cant make a test transaction from paypal.

Also, any thoughts on how to change 'Zip' to 'Post Code', and also removing 'States' to make it for the UK. Also, how do you add Royal Mail as a shipping?

Any thoughts, will be greatly appreciated please. Thanks in advance!

Sign in to reply to this post

ben_bradley348417

Any replies would be greatly recieved please!

Sign in to reply to this post

Eric Mittman

I have looked into this a little and it seems that you are using PowerStore 2, the phone number validation is not a part of PowerStore 3, only the fax would be validated.

You can remove the validation or alter it so that the number is not required, removing it might be the easiest way to get past this issue. At the top of your orders update page look for this line of code:

php:
$WAFV_Errors .= WAValidatePN(((isset($_POST["OrderPhone"]))?$_POST["OrderPhone"]:"") . "",true,false,true,8);



You can safely remove it to stop the validation from occurring on the number. This should allow you to send the order confirmation. This should not have any effect on a test transaction though, the order must be placed and recorded before you will be able to send any confirmation.

As for changing zip to postal code you can change any of the labels that you see on the pages to say postal code instead, this will not have an effect on anything. The same goes for the states, it is just a static list that you can update to include areas or whatever else would make sense to put in there.

Sign in to reply to this post

ben_bradley348417

Originally Said By: Eric Mittman
  I have looked into this a little and it seems that you are using PowerStore 2, the phone number validation is not a part of PowerStore 3, only the fax would be validated.

You can remove the validation or alter it so that the number is not required, removing it might be the easiest way to get past this issue. At the top of your orders update page look for this line of code:

php:
$WAFV_Errors .= WAValidatePN(((isset($_POST["OrderPhone"]))?$_POST["OrderPhone"]:"") . "",true,false,true,8);


You can safely remove it to stop the validation from occurring on the number. This should allow you to send the order confirmation. This should not have any effect on a test transaction though, the order must be placed and recorded before you will be able to send any confirmation.

As for changing zip to postal code you can change any of the labels that you see on the pages to say postal code instead, this will not have an effect on anything. The same goes for the states, it is just a static list that you can update to include areas or whatever else would make sense to put in there.  



Thanks for your reply Eric, I've managed to send a shipped confirmation now. However, Im still seeing no transfer exchange of money in Paypal sandbox testing? Also, how do I make the site SSL secure, when entering card details? It is supposed to be Web Payments Pro.

Sign in to reply to this post

i.edwards384429

update

Hi

If you are useing PS3 I have modified it to reflect UK counties and post codes.

Providing support Ok it ,I'll let you have the code to change it

cheers

Ian

Sign in to reply to this post

Eric Mittman

I think this one is using PS2, but if you two would like to exchange code updates that is ok, but the complete files should not be posted here in the forum.

As for your transactions not occurring for the PayPal do you have test mode set to true in your globals file? If so you will need to set it to false. Also, check that you have the use sandbox set to true for sandbox testing.

When you are checking on transaction that occurred in the sandbox you will need to sign into the sandbox area to with your testing account to see the details. If you see no details here then it means that no transaction occurred, this is usually only the case when the test mode is enabled.

Sign in to reply to this post

ben_bradley348417

Originally Said By: Eric Mittman
  I think this one is using PS2, but if you two would like to exchange code updates that is ok, but the complete files should not be posted here in the forum.

As for your transactions not occurring for the PayPal do you have test mode set to true in your globals file? If so you will need to set it to false. Also, check that you have the use sandbox set to true for sandbox testing.

When you are checking on transaction that occurred in the sandbox you will need to sign into the sandbox area to with your testing account to see the details. If you see no details here then it means that no transaction occurred, this is usually only the case when the test mode is enabled.  



Eric, I currently have had the test mode=true, and the sandbox=true. I can get a order go through the process. But, I cant get the transaction of money in sandbox. When test mode=false, I get through sandbox paypal to put the details in for the transaction and the order confirmation, then when I submit to confirm order (pp_confirm), it goes to checkout failure (pp_checkout_failure).
What is wrong please?
Is the checkout.php page ssl encrypted when I get it to go live?

Also, how do I join UPS and get the shipping gateway working? I've opened an account and looked at the shipping api, but dont understand how to link the two, and theres nothing from both parties to explain.

Sign in to reply to this post

Eric Mittman

If you are test mode turned off and are getting to the failure page with the sandbox or live mode then you will need to add in the debug info to your failure pages to see what the problem might be.

On you pp_checkout_failure and the checkout_failure pages add this into the source on the pages, it will print out all of the api interactions that are occurring. This should let you know what the error is, please post back with what you discover.

php:
<?php 

if(!session_id()) session_start(); 
if(
$WAGLOBAL_Gateway == ) { 
echo 
"<p>Direct Pay: <br />"
echo 
"Full Request: ".(isset($_SESSION["PP_DirectPayment_postedValues"])?htmlentities($_SESSION["PP_DirectPayment_postedValues"]):"n/a")."<br />"
echo 
"Full Response: ".(isset($_SESSION["PP_DirectPayment"])?htmlentities($_SESSION["PP_DirectPayment"]):"n/a")."<br /></p>"
echo 
"<p>Express Authorize <br />"
echo 
"Full Request: ".(isset($_SESSION["ECO_Auth_Request"])?htmlentities($_SESSION["ECO_Auth_Request"]):"n/a")."<br />"
echo 
"Full Response: ".(isset($_SESSION["ECO_Auth_Result"])?htmlentities($_SESSION["ECO_Auth_Result"]):"n/a")."<br />"
echo 
"<p>Express Process: <br />"
echo 
"Full Request: ".(isset($_SESSION["ECO_Process_Request"])?htmlentities($_SESSION["ECO_Process_Request"]):"n/a")."<br />"
echo 
"Full Response: ".(isset($_SESSION["ECO_Process_Result"])?htmlentities($_SESSION["ECO_Process_Result"]):"n/a")."<br /></p>"


if(
$WAGLOBAL_Gateway == 2) { 
echo 
"<p>Auth Net: <br />"
echo 
"Full Request: ".(isset($_SESSION['WAAuthNet_postedValues'])?htmlentities($_SESSION['WAAuthNet_postedValues']):"n/a")."<br />"
echo 
"Full Response: ".(isset($_SESSION['WAAuthNet'])?htmlentities($_SESSION['WAAuthNet']):"n/a")."<br /></p>"


if(
$WAGLOBAL_Gateway == ) { 
echo 
"<p>Express Authorize: <br />"
echo 
"Full Request: ".(isset($_SESSION["ECO_Auth_Request"])?htmlentities($_SESSION["ECO_Auth_Request"]):"n/a")."<br />"
echo 
"Full Response: ".(isset($_SESSION["ECO_Auth_Result"])?htmlentities($_SESSION["ECO_Auth_Result"]):"n/a")."<br /></p>"
echo 
"<p>Express Process: <br />"
echo 
"Full Request: ".(isset($_SESSION["ECO_Process_Request"])?htmlentities($_SESSION["ECO_Process_Request"]):"n/a")."<br />"
echo 
"Full Response: ".(isset($_SESSION["ECO_Process_Result"])?htmlentities($_SESSION["ECO_Process_Result"]):"n/a")."<br /></p>"


if(
$WAGLOBAL_Shipping == 1) { 
echo 
"<p>UPS: <br />"
echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_UPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullRequest"]):"n/a")."<br />"
echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_UPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullResponse"]):"n/a")."<br /></p>"

if(
$WAGLOBAL_Shipping == 2) { 
echo 
"<p>FedEX: <br />"
echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullRequest"]):"n/a")."<br />"
echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullResponse"]):"n/a")."<br /></p>"

if(
$WAGLOBAL_Shipping == 3) { 
echo 
"<p>USPS: <br />"
echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_USPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullRequest"]):"n/a")."<br />"
echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_USPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullResponse"]):"n/a")."<br /></p>"

?>



For signing up to UPS I found this info from Joe Lowery on the Adobe Developer Connection:

  GETTING UPS ACCESS

To start, visit the My UPS sign up page at registration. Review the service agreement terms and conditions; if you wish to proceed, click Accept at the bottom of the page. On the next page, fill in basic contact information such as name, street address, telephone number, and e-mail address; developers should enter their own information rather than that of a client. The final step is to establish a username and password.

Once you have a My UPS account, register with them as an end-user of their online tools. Log onto your My UPS account and then visit toolintro?loc=en_US&WT.svl=SubNav; and select the Get Tools link (located on both the left and right side of the page). When the Get Tools page opens, choose the link to the UPS Rates & Service Selection in the Standard Tools section. You may need to provide the additional information requested before you can proceed. After you've registered with their online tools division, you'll receive an e-mail with a developer's key. The developer's key has two purposes: It gives you access to all the UPS documentation for implementing their online tools, and it is needed to retrieve a UPS Access Key, which, in turn, is required to actually communicate with the UPS web services.

UPS offers two varieties of services, one HTML-based and the other rooted in XML. The XML version is far more robust and allows connection to all of UPS' services worldwide whereas the HTML version is limited to two services (UPS Tracking and UPS Rates & Service Selection) and only between the United States and Puerto Rico  
Sign in to reply to this post

ben_bradley348417

Originally Said By: Eric Mittman
  On you pp_checkout_failure and the checkout_failure pages add this into the source on the pages, it will print out all of the api interactions that are occurring. This should let you know what the error is, please post back with what you discover.  
Sign in to reply to this post

ben_bradley348417

moved to private

Sign in to reply to this post
loading

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...