HomeHome Product Discus... Product Discus...SmithCartSmithCartPayPal IPN - web servicePayPal IPN - web service
Previous
 
Next
New Post
9/14/2012 7:30 AM
 
What fields are saved when using PayPal IPN? PayPal sends a ton of information so I was wondering what information is captured and saved AND in which table(s) does that info get saved.

Thanks!
 
New Post
9/14/2012 11:41 PM
 
Hi Richard,

Which version of the Cart and DNN are you currently running?

Thanks
 
New Post
9/17/2012 10:55 AM
 
DNN 6.0.2
Smith Cart: 5.0
 
New Post
9/18/2012 5:24 PM
 
Hi Richard,

Currently a flag indicating if the transaction is approved or declined is being saved in the Smith_PayHist table. In the future we will be adding the Transaction ID and Auth Code.

Thanks
 
New Post
9/19/2012 8:27 AM
 
Are you referring to the Smith_PayHist.Status?  So this gets updated to "Approved" if PayPal payment succeeds and "Declined" if the payment does not succeed, right?  (NOTE: I see the Smith_PayHist.Notes field says "Awaiting Payment" - does this get updated as well?)

Are there any other possible values that get updated in the cart via PayPal IPN?

I could see the Smith_StoreOrderDetails.DateUpdated and Smith_StoreOrderDetails.Returned fields get updated whenever PayPal IPN sends data for the transaction. There is a ton of info coming from PayPal IPN so I'm hoping that future releases of SC includes updated data to help me create the reports I need.

Basically, I'm trying to create the report we discussed in the recent past to obtain sales order details.  Just so you have an idea, here is my query (below). 

SELECT o.OrderDate, od.DateUpdated, o.Status, od.Returned, ph.PayType, sc.FirstName + ' ' + sc.LastName AS [Customer Name]
, sc.Email, CAST(od.Quantity AS INT) AS [Quantity], od.ProductSKU, od.ProductName
 FROM Smith_StoreOrders o
  INNER JOIN Smith_Customer AS sc ON o.CustomerID = sc.CustomerID
  INNER JOIN Smith_StoreOrderDetails od ON o.OrderID = od.OrderID
  INNER JOIN Smith_PayHist ph ON o.PayHistID = ph.PayHistID
 WHERE o.OrderDate >= @url_FromDate  
AND o.OrderDate <= @url_ToDate 
ORDER BY sc.Email, o.OrderDate

Yields somthig like this:

OrderDate DateUpdated Status Returned PayType Customer NAME Email Quantity ProductSKU ProductName
8/1/2012 9:40:48 PM   Open   CreditCard Test Customer TEST@DOMAIN.net 1 S10158 Test Widget 1
8/1/2012 10:40:48 PM   Open   PAYPALSTD Test Customer TEST@DOMAIN.net 1 BR549 Test Widget 2
8/1/2012 11:40:48 PM   Open   PAYPALSTD Test Customer TEST@DOMAIN.net 1 FF1234 Test Widget 3
8/1/2012 1240:48 PM   Open   CreditCard Test Customer TEST@DOMAIN.net 1 ZZZ987 Test Widget 4

 
New Post
9/25/2012 1:26 PM
 
Hi Richard,

Yes, future releases of SmithCart will include the storing of additional fields returned from PayPal IPN to help you create the reports you are requesting however work has not been started yet so I can’t give you a completion date. It is on our development list but since our programming queue is currently full with paid customer projects it has not been prioritized into programming yet. If you are interested in sponsoring a portion of the development to move this into programming we can provide you with a fixed quote by submitting a Quote Request at the following link: http://www.smith-consulting.com/servi...

Please let us know if we can help with anything else.

Thanks
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartPayPal IPN - web servicePayPal IPN - web service