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 8435531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:56:27+00:00 2026-06-10T06:56:27+00:00

I’m using PayPal. I’m sending values to PayPal, and then getting values back. I’m

  • 0

I’m using PayPal. I’m sending values to PayPal, and then getting values back. I’m not able to pass parameters because PayPal knows nothing about them. How can I get the cart values in my method without passing the parameters?

I’m able to get the values like this

public ViewResult Index(Cart cart, string returnUrl)
{
    return View(new CartIndexViewModel
                    {
                        Cart = cart,
                        ReturnUrl = returnUrl
                    });
}

but, what if I’m not able to pass the (Cart cart) as a parameter – how do I get the values?

 public ViewResult Index()
    {

//what do i need to do here???

        return View(new CartIndexViewModel
                        {
                            Cart = cart,
                            ReturnUrl = returnUrl
                        });
    }

thanks for any help or advice.

  • 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-06-10T06:56:29+00:00Added an answer on June 10, 2026 at 6:56 am

    I suppose you could drop cookies that store the Cart data for that session. Then after you get a post back from paypal or whatever you could read the cookies from the user’s request.

    However I would think you could save the pending transaction to the database, send whatever data it is you send to paypal, and use a key or whatever method they have to link the paypal transaction to the pending transaction in the database. This would be more secure.

    I’m sure paypal has a simple and well documented transaction process, that I would look into before trying either of these.

    If your actually trying to integrate with paypal and not just using that as an example, here is a tutorial for Paypal and MVC3.

    From PayPal:

    Relationship Between Express Checkout and Shopping Carts

    If you do not
    have your own shopping cart and have not integrated Express Checkout
    with your website, you might consider using a third-party shopping
    cart. A shopping cart is software that lets buyers put items in a
    basket and calculates totals during checkout.

    PayPal partners with a wide variety of shopping carts, all of which
    are PayPal compatible and provide secure purchases for your buyers.
    The shopping cart vendor provides instructions for integrating their
    shopping cart on your website. See the PayPal Partner Directory
    (https://www.paypal-marketing.com/emarketing/partner/directory/directory.page?type=Shopping+Cart#mode=dir&dir%5Bops%5D=either&dir%5Bkey%5D=Keyword+term&dir%5Btyp%5D%5B%5D=1&dir%5Bind%5D%5B%5D=0&dir%5Brod%5D%5B%5D=1&dir%5Brod%5D%5B%5D=2)
    for available shopping carts.

    IMPORTANT:If you choose a shopping cart, do not contact PayPal. PayPal
    has no authority over a shopping cart vendor and cannot help you
    resolve issues that might arise from the integration with or use of a
    third-party shopping cart.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I am currently running into a problem where an element is coming back from

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.