Forums

Paypal Pro no email or thank you

desertdiana 21 Sep, 2016
Hi,
Ok now I am trying to get papal pro set up in my form. Form submits the payment but goes to a blank page with no thank you message.

I get the email from Paypal that a donation has been made. But no admin or donor emails.

What am I doing wrong?

Thank you for looking a this for me..........

Diana

Here are my form and settings screenshots:
[attachment=0]chrono-pp-form.jpg[/attachment]

[attachment=1]chrono-pp-setup.jpg[/attachment]
GreyHead 22 Sep, 2016
Hi desertdiana,

First the blank page - I'm assuming that this is a page with just the template showing. That would be because there is nothing in your form On Submit event to show anything. Try adding a Debugger after the PayPal Pro action to see what data is there.

Second the missing emails - I suspect that this is because they are in the On Found event of your DB Read action and - for some reason - the record isn't being found.

NB: I recommend that you don't 'nest ' actions more than strictly necessary.

If you add an email action at the end of the on ipn event address it to yourself and add the following code in the Template you should see most of the data available:
<?php
echo'<div>$form->data: '.print_r($form->data, true).'</div>';
?>


The Display Message there will do nothing useful as the IPN event is 'behind the scenes' confirming the transaction with PayPal.

Bob
desertdiana 22 Sep, 2016
Hi Bob,

I created the form and setting based on the demo-redirect in C5. Updated per your suggestions, tested and the payment went through but still no email or thank you message after complete.

IPN history does show the transaction in the history.

Attached is look at what changes I made to the settings.

Here is the debugger info with me cc details hidden.

This is private content

GreyHead 22 Sep, 2016
Hi DesertDiana,

It looks as though this Debugger info is from the Debugger action at the end of the On Submit message. Are you not getting anything from the Email at the end of the ipn action? That should at least be sent.

You can add an Event Switcher where the Debugger is and check the value of $form->data['paypal_pro']['payment_status'] if that is SUCCESS you can show an appropriate message and email. If it is not SUCCESS then it may just be delayed - you'd need to check the alternatives status messages and show something appropriate.

Bob
desertdiana 22 Sep, 2016
Hi Bob,

No email from the end of the ip action............

Never used an event switcher. Can you tell me exactly what to do with it?
GreyHead 22 Sep, 2016
Hi desertdiana,

Dinner time here but this FAQ might help get you going.

Bob
desertdiana 22 Sep, 2016
Thank you Bob......yes we are across the pond from each other.

when you get a chance, here is the code I put in the switcher:

<?php
if ( $form->data['paypal_pro'] == 'payment_status' ) {
  return 'success';
} else {
  return 'fail';
}
?>


And attached the results. Still no email or thankyou message sent.

Have a nice dinner!

Diana
GreyHead 23 Sep, 2016
Hi desertdiana,

Please try
<?php
if ( $form->data['paypal_pro']['payment_status'] == 'SUCCESS' ) {
  return 'success';
} else {
  return 'fail';
}
?>

But not having SUCCESS may mean a delay rather than a failure

Bob
desertdiana 23 Sep, 2016
Hi Bob,

Now it returned this:
&PAYMENTACTION=Sale&EXPDATE=xxxxxx&AMT=2.25&CREDITCARDTYPE=Visa&ACCT=xxxxxxxx3444&CVV2=xxx&FIRSTNAME=Diana&LASTNAME=Nashif&STREET=6825+N+72nd+Pl&CITY=Scottsdale&STATE=AZ&ZIP=85250&COUNTRYCODE=&CURRENCYCODE=¬ify_url=notify_url: https%3A%2F%2Fwww.standupgirlfoundation.org%2Findex.php%3Foption%3Dcom_chronoforms%26chronoform%3DSUGdonation_Paypal_pro%26event%3Dipn&comment=comment: Diana+testing+paypal+donation+form
Transaction ID: 	
Amount: 	
AVS: 	
CVV2:
GreyHead 23 Sep, 2016
Hi desertdiana,

Where exactly is that returned? It looks like the URL that is sent to PayPal to set up the payment?

Bob
desertdiana 23 Sep, 2016
Payment goes through and this shows up on a blank page of our site which should be a thank you message. No emails sent either.
GreyHead 23 Sep, 2016
Hi desertdiana,

What do you have in the Event Switcher events? I'm not at all sure why this is displaying?

Bob
desertdiana 23 Sep, 2016
I put in what you suggested:

    <?php
    if ( $form->data['paypal_pro']['payment_status'] == 'SUCCESS' ) {
      return 'success';
    } else {
      return 'fail';
    }
    ?>
GreyHead 23 Sep, 2016
Hi desertdiana,

Yes, that's fine but that code just 'fires' one of the Event switcher sub-events. What, if anything, do you have in those?

By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.

Bob
desertdiana 23 Sep, 2016
That's a good idea, I think I have it all messed up!

PM you right now......
This topic is locked and no more replies can be posted.