View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

PayPal Standard IPN Response Record Update and Email Problem

Thread began 12/11/2009 4:46 pm by Kevin373660 | Last modified 12/21/2009 2:29 pm by Kevin373660 | 2499 views | 18 replies

Kevin373660

I cannot get the value for the Access Code named pair into the customers email. I have worked on this most of the night and have tried everything that I can read about this.

This is the clearest example that I found:

PayPal Button:

<input type="hidden" name="on0" value="CustomID">
<input type="hidden" name="os0" value="<?=$userdata['user_id']?>">

IPN Script:

$customid = $_POST['option_selection1'];

I believe these are the same values that would be used to send size and color options through eCart. An abbreviated section of the specific code is noted below. The confirm.php is sending the correct values and they appear in paypal’s onscreen cart and payment email. eCart is generating a unique value for each of the two random codes and for each product. I believe that I am not grabbing and setting the correct value from the IPN post. I have tried: no0, ns0, no0_, ns0_, option_selection1, option_select1, option_amount1. What is the correct code for the IPN page so that I can retrieve the values from the Post? Please help.


** EDTITED confirm.php EDTITED ****************************

<input type="hidden" name="on0_<?php echo $Cart_Index+1; ?>" id="on0_<?php echo $Cart_Index+1; ?>" value="Code 1" />
<input type="hidden" name="os0_<?php echo $Cart_Index+1; ?>" id="os0_<?php echo $Cart_Index+1; ?>" value="<?php echo $Cart->DisplayInfo("Code1"); ?>" />
<input type="hidden" name="on1_<?php echo $Cart_Index+1; ?>" id="on1_<?php echo $Cart_Index+1; ?>" value="Code 2" />
<input type="hidden" name="os1_<?php echo $Cart_Index+1; ?>" id="os1_<?php echo $Cart_Index+1; ?>" value="<?php echo $Cart->DisplayInfo("Code2"); ?>" />

** EDTITED pp_IPN.php EDTITED ****************************

$ATC_Code1 = "".$_POST["option_selection1".($displayIndex+1)] ."";
$ATC_Code2 = "".$_POST["option_selection2".($displayIndex+1)] ."";
$ATC_DetailOption1 = "";
$ATC_DetailOption2 = "";

** EDTITED WAUE_pp_IPN_1.php EDTITED *********************

$MailBody = $MailBody . " <p style=\"margin:0 0 2px 0;\">Option/Code 1:";
$MailBody = $MailBody . $Cart->DisplayInfo("Code1");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . " <p style=\"margin:0 0 2px 0;\">Option/Code 2:";
$MailBody = $MailBody . $Cart->DisplayInfo("Code2");

******************************************************

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