PayPal SetExpressCheckout question

Posted on 2009-02-11
Last Modified: 2014-05-28
Hi all,
I am playing with paypal sandbox and ExpressCheckout

After user chooses to buy, I want user to login and be redirected to "review your payment" screen  but instead of that user login and redirected to review your information screen .
In setexpressexchange I am setting description and amount but even in review your information screen,  I can't see them.

I tried to disable "Payment Review" in a test account but it neither help.

What I am doing wrong ??
Question by:dcave555
    LVL 5

    Assisted Solution

    It is a little tricky presenting the correct path to PayPal.  If you use JURI::base() to start that often helps.  Be sure to also refer to the correct controller,view,and task in the return url.   Also when making a string for the path use .ds. instead of / or \ so that whichever is correct for the Operating system in use is the one that is used.

    Hope this helps
    $returnURL = JURI::base().'index.php?option=com_yourcomponent&controller=reviewyourpayment&view=reviewyour payment&task=reviewyourpayment&checkouttype=Express';

    Open in new window


    Author Comment

    Thx for your response...

    i am working with NVPCallerServices
    and after getting response from  setexpresscheckout command
    i am redirecting user to this page:


    the redirect sending to paypal login page and after that paypal redirects to review your information

    where can i add controller=reviewyourpayment, view=reviewyour payment, task=reviewyourpayment ?


    LVL 11

    Accepted Solution

    I'm not sure I'm following you entirely, but here's a sample SetExpressCheckout request that will display itemized payment details...

    [REQUESTDATA] => Array
    		[USER] => ***
    		[PWD] => ***
    		[VERSION] => 87.0
    		[SIGNATURE] => ***
    		[METHOD] => SetExpressCheckout
    		[MAXAMT] => 200.00
    		[RETURNURL] =>
    		[CANCELURL] =>
    		[ALLOWNOTE] => 1
    		[HDRIMG] =>
    		[SOLUTIONTYPE] => Sole
    		[LANDINGPAGE] => Billing
    		[BRANDNAME] => Angell EYE
    		[CUSTOMERSERVICENUMBER] => 555-555-5555
    		[GIFTWRAPNAME] => Box with Ribbon
    		[GIFTWRAPAMOUNT] => 2.50
    		[SURVEYQUESTION] => Did you like this checkout?
    		[SURVEYENABLE] => 1
    		[BUYERREGISTRATIONDATE] => 2012-07-14T00:00:00Z
    		[L_SURVEYCHOICE0] => Yes
    		[L_SURVEYCHOICE1] => No
    		[PAYMENTREQUEST_0_AMT] => 100.00
    		[PAYMENTREQUEST_0_DESC] => This is a test order.
    		[PAYMENTREQUEST_0_NOTETEXT] => This is a test note before ever having left the web site.
    		[L_PAYMENTREQUEST_0_NAME0] => Widget 123
    		[L_PAYMENTREQUEST_0_DESC0] => Widget 123
    		[L_PAYMENTREQUEST_0_AMT0] => 40.00
    		[L_PAYMENTREQUEST_0_QTY0] => 1
    		[L_PAYMENTREQUEST_0_NAME1] => Widget 456
    		[L_PAYMENTREQUEST_0_DESC1] => Widget 456
    		[L_PAYMENTREQUEST_0_AMT1] => 40.00
    		[L_PAYMENTREQUEST_0_QTY1] => 1

    Open in new window

    And here's what the user would see upon being redirected to PayPal...

    Express Checkout Review

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now