How to retrieve Paypal Payment result

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/25/2011 2:11:24 PM
Gravatar
Total Posts 39
Hello from France!

How to retrieve Paypal Payment result

Hello
In a page of my module, I placed a button to pay with paypal.
(I copied the tag from Webstore):

<asp:ImageButton ID="btnPayPal" runat="server" ImageUrl="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"
                    AlternateText="Payer avec PayPal" Visible="false" />


The call to paypal payment run well.
When payment is completed, how do I know if the payment was properly made?
Paypal sends there a return code?

I must save date and state for this payment.


Thank you for your help
 

1/26/2011 12:26:54 PM
Gravatar
Total Posts 18439

Re: How to retrieve Paypal Payment result

Its a complicated question, not something I can answer easily for you, there is a lot to know. There are several ways that PayPal notifies of transactions, PDT and IPN, both of which require configuration in your PayPal account. All I can suggest is to study the WebStore code, especially the WebStorePayPalPDTHandlerProvider.cs and WebStorePayPalIPNHandler.cs, see hwo they plugin to the mojoPortal.Web/Services/PayPalPDTHandler.ashx and PayPalIPNHandler.ashx, and read the documentation from PayPal.

Hope it helps,

Joe

1/26/2011 1:25:45 PM
Gravatar
Total Posts 39
Hello from France!

Re: How to retrieve Paypal Payment result

Thanks Joe

I will study it all. I will place a post in this forum if I find something interesting.

Christian

You must sign in to post in the forums. This thread is closed to new posts.