close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

IPN Issues

Thread began 4/21/2021 9:29 am by ccdantas101117 | Last modified 4/21/2021 3:23 pm by Ray Borduin | 82 views | 9 replies |

ccdantas101117

IPN Issues

The paypal keep sending paypal ipn page is incorrect, and keep trying to post and because the email receipt is at the same page keeps send several emails to customers and is annoying. Code of page below. I need help because I don't see where the error is.
<?php
//WA eCart Include
require_once("WA_eCart/mbtCart_PHP.php");
?>
<?php
$mbtCart->GetContent();
?>
<?php
// WA eCart Get Form PaypalIPN.xml
if (WA_isValidPayPal()) {
$mbtCart->ClearCart();
$displayIndex = 0;
$runOnce = "run";
while (isset($_POST["item_number".($displayIndex+1)])) {
$ATC_AddIfIn = 0;
$ATC_RedirectIfIn = "";
$ATC_ID = "".$_POST["item_number".($displayIndex+1)] ."";
$ATC_Name = "".$_POST["item_name".($displayIndex+1)] ."";
$ATC_Description = "";
$ATC_Weight = "0";
$ATC_Quantity = "".$_POST["quantity".($displayIndex+1)] ."";
$ATC_Price = "".$_POST["mc_gross_".($displayIndex+1)]/$_POST["quantity".($displayIndex+1)] ."";
$ATC_size = "".$_POST["os0". ($displayIndex+1)] ."";
$ATC_SizesIncrease = "". $_POST["os1".($displayIndex+1)] ."";
$ATC_Thumbnails = "";
$ATC_sku = "";

if (is_numeric($ATC_Quantity) && $ATC_Quantity != 0) {
$mbtCart->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_ID, $ATC_Name, $ATC_Description, $ATC_Weight, $ATC_Quantity, $ATC_Price, $ATC_size, $ATC_SizesIncrease, $ATC_Thumbnails, $ATC_sku);
}
$runOnce = null;
$displayIndex++;
}
}
?>
<?php require_once("WA_Universal_Email/mail_PHP.php"); ?>
<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
if ((WA_isValidPayPal())) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".((isset($_POST["payer_email"]))?$_POST["payer_email"]:"") ."";include("WA_Universal_Email/WAUE_ipnresponse_1.php");
$RecipientEmail = "mike@miraclebit.com";include("WA_Universal_Email/WAUE_ipnresponse_1.php");
$RecipientEmail = "ccdantas@ccdantaswebdesign.com";include("WA_Universal_Email/WAUE_ipnresponse_1.php");

//Send Mail All Entries
if (""!="") {
header("Location: ");
}
}
?>
<?php
// WA eCart Redirect
if ($mbtCart->redirStr != "") {
header("Location: ".$mbtCart->redirStr);
}
?>

Sign in to reply to this post

Ray BorduinWebAssist

But the email sends?

Sending the email is the last thing on the page, so it is strange that there is an error if the email sends.

I'd need to debug this. Can you send me FTP access?

Sign in to reply to this post
Did this help? Tips are appreciated...

ccdantas101117

FTP Request

Hi Ray FTP attached as well as the emails the user and site owner is receiving.

Sign in to reply to this post

Ray BorduinWebAssist

If you log into paypal and look at your ipn history, does it give any information on the error message? It just doesn't look like this page has an error.

Is there information from paypal that might help diagnose this?

Sign in to reply to this post
Did this help? Tips are appreciated...

ccdantas101117

I will ask the site owner to check. I have sent to site owner an email requesting him to provide the message of the failed IPN. I guess the repeating emails submission is because IPN failed and the IPN re-send them until get a success. Is what I am thinking what is happening.

Sign in to reply to this post

Ray BorduinWebAssist

It sounds like it, but it doesn't make sense since the email is the last thing on the page and it sends... so how can there be an error if the email sends?

Sign in to reply to this post
Did this help? Tips are appreciated...

ccdantas101117

The site owner told me he received emails from paypal informing the IPN page is failing. And I quote: PAYPAL SENT ME A NOTICE YESTERDAY SAYING “IPNS SENT TO www.miraclebit.com/ipnresponse.php ARE FAILING.

Sign in to reply to this post

Ray BorduinWebAssist

Do you have access to their paypal account? You can go in to the history and see which are failing, if they are still failing, and maybe get the error message.

Sign in to reply to this post
Did this help? Tips are appreciated...

Ray BorduinWebAssist

It looks like your IPN is set up to use http:// but your site does an automatic https:// redirect. That could be the cause.

If you copy everything in that IPN Message textarea and send it to me, that would help me debug if you still have issues.

Sign in to reply to this post
Did this help? Tips are appreciated...

ccdantas101117

I sent instructions to site owner.
Thanks

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