This site can’t be reached www.sandbox3.paypal.com’

suryabg2000
Contributor
Contributor

This site can’t be reached www.sandbox3.paypal.com’s server IP address could not be found. Try running Windows Network Diagnostics. DNS_PROBE_FINISHED_NXDOMAIN

Login to Me Too
7 REPLIES 7

MTS_Justin
Moderator
Moderator
Hello,

Can you provide some information about what you were doing when you experienced this issue ?

You can quickly resolve the issue by removing the "3" from the URL, it should be "www.sandbox.paypal.com"

Was my post helpful? If so, please give me a kudos!
Login to Me Too

suryabg2000
Contributor
Contributor

I have configured a donation button

and calling the form post using below code and which is taking me to paypal donation screen, then I am clicking login paypal and using buyer email & password to complete the transaction . So when I login it fails with error mentioned in previous post.

 

var form = $('<form></form>');
form.attr("action", "https://www.sandbox.paypal.com/cgi-bin/webscr");
form.attr("method", "POST");
form.attr("style", "display:none;");

var input = $("<input>")
.attr("type", "hidden")
.attr("name", "cmd")
.val("_s-xclick");

var input2 = $("<input>")
.attr("type", "hidden")
.attr("name", "hosted_button_id")
.val("J6NM3328R4CGL");

//var element1 = document.createElement("<input type='hidden' name='cmd' value='_s- xclick'>");
form.append(input);
form.append(input2);

//var element2 = document.createElement("<input type='hidden' name='hosted_button_id' value='J6NM3328R4CGL'>");
//form.add(element2);

$("body").append(form);

// submit form

form.submit();

 

 

Login to Me Too

LeonardoGaiero
Contributor
Contributor

Allow me to tag along, as we appear to have the same issue; that being the case, we might be able to pin down the problem and keep everything under here.

 

In my case, the error is occurring when accessing the sandbox API through several WordPress donation plugins. None works, and none references sandbox3.paypal.com anywhere. Here's my form:

 

<form target="_blank" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" class="customize-unpreviewable">
	<input name="cmd" value="_donations" type="hidden">
	<input name="business" value="snes_face-test(at)yahoo(dot)com" type="hidden">
	<input name="item_name" value="Donation" type="hidden">
	<input name="item_number" value="" type="hidden">
	<input name="currency_code" value="CHF" type="hidden">
	<input name="amount" id="amount_f1eedb71d4d7ab09c594f2bf399945b3" value="" type="hidden">
	<input name="no_note" value="1" type="hidden">
	<input name="no_shipping" value="1" type="hidden">
	<input name="notify_url" value="https://[redacted]/wp-admin/admin-post.php?action=add_wpedon_button_ipn" type="hidden">
	<input name="lc" value="it_IT" type="hidden">
	<input name="bn" value="WPPlugin_SP" type="hidden">
	<input name="return" value="" type="hidden">
	<input name="cancel_return" value="" type="hidden">
	<input class="wpedon_paypalbuttonimage" src="https://[redacted]/uploads/2017/12/Paypal.png" name="submit" alt="Make your payments with PayPal. It is free, secure, effective." style="border: none;" type="image" border="0">
	<img alt="" style="border: medium none; display: none !important;" src="https://www.paypal.com/it_IT/i/scr/pixel.gif" width="1" hidden="" height="1" border="0">
</form>

Hopefully we can figure out what's going on, doesn't seem to be a client-side problem but rather some old reference API-wise (possibly due to some code path that ends up on sandbox3?).

Login to Me Too

suryabg2000
Contributor
Contributor

Leonard thanks for tagging me. I still have same issue but I was get work around, so it fails when loading sandbox3, remove 3 from address bar URL& everything seemed working. 

You can try this & see if it works for you.

 

But right now, I got another issue, I did mention 127.0.0.1 in return URL and after successfull transaction paypal is redirecting me to my page but I am not seeing any data either in POST or GET params, can you provide some sample code how to implement on how to read content in returned URL after successful or failure transaction

Login to Me Too

LeonardoGaiero
Contributor
Contributor

Heads up, I've found something: on the sandbox login form, I'm seeing this output.

 

 

<form action="/signin" method="post" class="proceed maskable" autocomplete="off" name="login" novalidate="">
<input id="token" name="_csrf" value="[snip]" type="hidden">
<input name="locale.x" value="it_IT" type="hidden">
<input name="processSignin" value="main" type="hidden">
<input name="flowName" value="xoLogin" type="hidden">
<input name="fn_sync_data" value="fn_sync_data" type="hidden">
<input name="returnUri" value="https://www.sandbox3.paypal.com/it/cgi-bin/webscr?cmd=_donations_post_ul" type="hidden">
<input name="state" value="&amp;SESSION=[snip]&amp;dispatch=[snip]&amp;mayflyId=[snip]&amp;flowType=donation" type="hidden">
[lots of faff]
</form>

Couple of observations: this broken URL only appears on the login screen, and doesn't show up in the page referenced via https://www.sandbox.paypal.com/it/cgi-bin/webscr. This means that the dead reference is in the actual login page to the sandbox.

 

And, to help along with your question: try changing the returnUri from here. Right-click on the username field and select "inspect element"; you will see that the controls are contained within a <form> element, which has the input pointed out above named "returnUri". Double-click on its value and remove the "3" from there, see if this works.

 

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

Thanks for your follow-up on this issue.

Allow me some time to review it and request our developers to also take a look. I'll report back here once that's been completed.

Was my post helpful? If so, please give me a kudos!
Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

I've attempted to reproduce this issue by creating a new Italian account and within that account creating a new hosted donation button and when I reach the login page and check the code, the URL does not contain a "3".

Are you using an already created hosted button which was saved to your account ? If so, can you try creating a new hosted donation button and go through the flow again ?

Let me know the result

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.