Paypal Express Checkout Information

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
moopa
Lieutenant (LT)
Lieutenant (LT)
Posts: 59
Joined: Tue May 13, 2008 10:11 am

Paypal Express Checkout Information

Post by moopa » Thu Jun 25, 2009 1:59 pm

Hi.

I would like to make my own custom pages for Paypal Express checkout. I have a few questions.

1. I am guessing when PayPalExpressCheckout.aspx does a SET that the request sent to Paypal has the return url sent with it so the next step can be processed by Able. Is it possible to set this return url?

2. Can i automate the final stage of the process (when the paypal "pay now" button appears. This step is not necessary for us.

3. Is there any documentation for the Able Paypal Provider classes or the process that anyone could give me links to?

Thanks in advance,

Moopa

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Paypal Express Checkout Information

Post by kastnerd » Thu Jun 25, 2009 2:11 pm

There is a place in paypal to enter the return url.

User avatar
moopa
Lieutenant (LT)
Lieutenant (LT)
Posts: 59
Joined: Tue May 13, 2008 10:11 am

Re: Paypal Express Checkout Information

Post by moopa » Mon Jun 29, 2009 2:35 am

kastnerd wrote:There is a place in paypal to enter the return url.
thanks for the response. I have yet to do this in paypal. Is the url you refer to for the IPN processor?

The URL i am most interested in setting is this one in PaypalExpressCheckout.aspx.cs

Code: Select all

   private void SetExpressCheckout()
    {
        PayPalProvider client = StoreDataHelper.GetPayPalProvider();
        PayPalProvider.ExpressCheckoutResult result = client.SetExpressCheckout();
        if (result.Errors == null)
        {
            Response.Redirect(result.RedirectUrl);
        }
        else
        {
            // RESPOND TO ERRORS
            foreach (com.paypal.soap.api.ErrorType err in result.Errors)
            {
                OtherErrors.Items.Add((err.ErrorCode + (": " + err.LongMessage)));
            }
            // SHOW APPROPRIATE TABLES
            AuthFailedPanel.Visible = false;
            OtherErrorPanel.Visible = true;
        }
    }

Post Reply