Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6819729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:20:27+00:00 2026-05-26T21:20:27+00:00

Possible Duplicate: Paypal Checkout Express empty cart problem i have an issue with paypal

  • 0

Possible Duplicate:
Paypal Checkout Express empty cart problem

i have an issue with paypal expresscheckout.
I used the code from integration wizard https://www.paypal-labs.com/integrationwizard/ecpaypal/main.php, everything works fine but when i am redirected to paypal i would like to have an order summary like total amount and kind of description on paypal’s page, but in my case its blank (like on this screen http://imageshack.us/photo/my-images/819/blankv.png/) i can put my code snippet that i am using:

                  // ==================================
                  // PayPal Express Checkout Module
                  // ==================================

                  //'------------------------------------
                  //' The paymentAmount is the total value of
                  //' the shopping cart, that was set
                  //' earlier in a session variable
                  //' by the shopping cart page
                  //'------------------------------------
                  $paymentAmount = $_SESSION["Payment_Amount"];

                  //'------------------------------------
                  //' When you integrate this code
                  //' set the variables below with
                  //' shipping address details
                  //' entered by the user on the
                  //' Shipping page.
                  //'------------------------------------

                  $sql = "SELECT * FROM orders_shipping_address WHERE orderid={$_SESSION['orderId']}";
                  $shipping_address = $this->db->query($sql)->fetchAll();

                  $shipToName = $shipping_address[0]['lastname'] . " " . $shipping_address[0]['firstname'];
                  $shipToStreet = $shipping_address[0]['street1'];
                  $shipToStreet2 = $shipping_address[0]['street2']; //Leave it blank if there is no value
                  $shipToCity = $shipping_address[0]['city'];
                  $shipToState = "Romania";
                  $shipToCountryCode = "RO"; // Please refer to the PayPal country codes in the API documentation
                  $shipToZip = $shipping_address[0]['zip'];
                  $phoneNum = $shipping_address[0]['phone'];

                  //'------------------------------------
                  //' The currencyCodeType and paymentType
                  //' are set to the selections made on the Integration Assistant
                  //'------------------------------------
                  $currencyCodeType = $_SESSION['currencyCodeType'] = "EUR";
                  $paymentType = $_SESSION['PaymentType'] = "Sale";

                  //'------------------------------------
                  //' The returnURL is the location where buyers return to when a
                  //' payment has been succesfully authorized.
                  //'
                  //' This is set to the value entered on the Integration Assistant
                  //'------------------------------------
                  $returnURL = $ret;

                  //'------------------------------------
                  //' The cancelURL is the location buyers are sent to when they hit the
                  //' cancel button during authorization of payment during the PayPal flow
                  //'
                  //' This is set to the value entered on the Integration Assistant
                  //'------------------------------------
                  $cancelURL = $cancel;

                  //'------------------------------------
                  //' Calls the SetExpressCheckout API call
                  //'
                  //' The CallMarkExpressCheckout function is defined in the file PayPalFunctions.php,
                  //' it is included at the top of this file.
                  //'-------------------------------------------------
                  $resArray = CallMarkExpressCheckout ($paymentAmount, $currencyCodeType, $paymentType, $returnURL,
                                                                                                                     $cancelURL, $shipToName, $shipToStreet, $shipToCity, $shipToState,
                                                                                                                     $shipToCountryCode, $shipToZip, $shipToStreet2, $phoneNum
                  );

                  $ack = strtoupper($resArray["ACK"]);
                  if($ack=="SUCCESS" || $ack=="SUCCESSWITHWARNING")
                  {
                             //dump($resArray);
                             //die;
                             $token = urldecode($resArray["TOKEN"]);
                             $_SESSION['reshash']=$token;
                             RedirectToPayPal ( $token );
                  }

any help would be really apreciated, thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:20:28+00:00Added an answer on May 26, 2026 at 9:20 pm

    Before calling SetExpressCheckout you need to add the items to the nvp string.

    The extra parameters below add two products:

            &L_PAYMENTREQUEST_0_NAME0=productname
            &L_PAYMENTREQUEST_0_NUMBER0=productcode
            &L_PAYMENTREQUEST_0_DESC0=product-description
            &L_PAYMENTREQUEST_0_AMT0=productamount
            &L_PAYMENTREQUEST_0_QTY0=product-unit-price
            &L_PAYMENTREQUEST_0_NAME1=productname
            &L_PAYMENTREQUEST_0_NUMBER1=productcode
            &L_PAYMENTREQUEST_0_DESC1=product-description
            &L_PAYMENTREQUEST_0_AMT1=productamount
            &L_PAYMENTREQUEST_0_QTY1=product-unit-price
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Singleton: How should it be used Following on from Ewan Makepeace 's
Possible Duplicate: Undefined Symbol ___gxx_personality_v0 on link I have a problem with the following
Possible Duplicate: How to run a database script file from Delphi? I have a
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: How do I read a resource file from a Java jar file?
Possible Duplicate: How to detect if JavaScript is disabled? I have a website which
Possible Duplicate: Difference between Convert.tostring() and .tostring() Hi Carrying on from this question What
Possible Duplicate: or is not valid C++ : why does this code compile ?
Possible Duplicate: Why does “abcd”.StartsWith(“”) return true? Whilst debugging through some code I found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.