Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
4
Newest
 Student
Impact
~218 people reached

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
Jul
20
awarded  Student
Jul
20
revised How do I verify if 3rd party payment succeeded?
Original tags were not off-topic. This has to do with payment. It is in the context of asp.net.
May
12
comment Where to put business logic in MVC design?
I agree. You get a much more flexible application when your model is simply a data structure acted upon by other business logic classes. As a simple example, I think that is a big failure of ASP.NET's approach to validation by using attributes. If I annotate a Person's FirstName property with the Required attribute, what happens if I create an admin view where FirstName should not be required? A business logic layer should consume the model and determine the appropriate actions for it.
Oct
7
awarded  Supporter
Dec
13
comment How do I verify if 3rd party payment succeeded?
I'm using .NET. So the best solution I see to make absolutely sure an order on the original server is processed after a payment succeeds is for the payment sever to store the order ID, flagged as succeeded. On my server have a service running that is polling the payment server for the status of pending orders. Once the payment server indicates success, it will fulfill the order. Meanwhile the user will be on a polling or ansync page awaiting the order to be flagged as completed. I can't think of a way to simplify it further. Still trying to determine how to delete abandoned, pending orders too
Dec
12
comment How do I verify if 3rd party payment succeeded?
I was just hoping for something simpler since PayPal makes their solution seem so out-of-the-box ready. Are you required to provide a service for their server to call and to implement polling with their solution?
Dec
12
comment How do I verify if 3rd party payment succeeded?
Thanks Christian! Good points. Can you provide any resources on signing a query string w/ a cert? Why the timestamp? Regarding failures after receiving payment, yes, we have used a polling mechanism for that very concern before. I was trying to avoid the payment app from having to know anything about the site that uses it. So maybe the payment server can just send a regular web request with said signed message, and then redirect the browser to a page that polls the e-commerce site for the result of that message?
Dec
12
awarded  Editor
Dec
12
revised How do I verify if 3rd party payment succeeded?
added 28 characters in body
Dec
12
asked How do I verify if 3rd party payment succeeded?
Jun
22
awarded  Teacher
Jun
22
answered Are my negative internship experiences representative of the real world?