Register   Tuesday, January 06, 2009 Forum
    Search
 
  Adeptris Forum  PayPal Cart  General  Save a copy in a plain text
Previous Previous
 
Next Disabled
New Post 3/24/2008 6:31 PM
User is offline IA
4 posts
No Ranking


Save a copy in a plain text 
Modified By IA  on 3/25/2008 4:19:36 PM)

Hi,

I try to save a copy of same information that is sent to Paypal in a plain text file.

I use ppCheckout.sendAndLoad("save.php", ppCheckout, "POST"); in FLA and following php script:<?php
    $t=time(); $t=date("D, d M Y H:i:s",$t);
    $tm=time(); $tm=date("Ymd_His",$tm);
   //Capture data from $_POST array
   $itemnumber = $_POST['sspCartItem.data.id'];
   $itemname = $_POST['sspCartItem.data.description'];
   $amount = $_POST['sspCartItem.data.price'];
   $quantity = $_POST['sspCartItem.data.quantity'];
   //Make one big string in a format Flash understand
   $toSave = "Date: ".$t." | Item_Number: ".itemnumber." | Item_Name: ".$itemname." | Amount: ".$amount." | Quantity: ".$quantity.      "\r\n";
   //Open a file in write mode
   $fp = fopen($tm.".txt", "a+");
   fwrite($fp, $toSave);
   //if(fwrite($fp, $toSave)) echo "writing=Ok";
   //else echo "writing=Error";
   fclose($fp);  
?>

For some reason no information is written although it traces in output window in Flash.

Do you have any suggestion?

Thanks,

Igor

 

OK. I got this part.

 
Previous Previous
 
Next Disabled
  Adeptris Forum  PayPal Cart  General  Save a copy in a plain text
Contact Details Minimize

 Enquiries:   
Email: Info@adeptris.co.uk

Tel: +44(0)1322  407 655

Sales:   
Email: Sales@adeptris.co.uk
Tel: +44(0)1322  407 655

Mobile:   
+44(0)7845 842 801

  
Copyright 2007 by Adeptris.co.uk   Terms Of Use  Privacy Statement