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

  • Home
  • SEARCH
  • 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 8196485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:29:37+00:00 2026-06-07T05:29:37+00:00

When a user go to paypal page from my website the order appears: quantity

  • 0

When a user go to paypal page from my website the order appears:

quantity 2
price 20$
Total 40$

whereas in the paypal account in the transaction details what appears is:

quantity 1
price 40$
total 40$

How can i solve this problem to have quantity 2 in paypal account?
i am using Paypal api set express check out:

   Dim caller As New CallerServices
        Dim profile As IAPIProfile = ProfileFactory.createSignatureAPIProfile()
        '
        '            WARNING: Do not embed plaintext credentials in your application code.
        '            Doing so is insecure and against best practices.
        '            Your API credentials must be handled securely. Please consider
        '            encrypting them for use in any production environment, and ensure
        '            that only authorized individuals may view or modify them.
        '            
        ' Set up your API credentials, PayPal end point, and API version.
        profile.APIUsername = AppSettings("APIUsername")
        profile.APIPassword = AppSettings("APIPassword")
        profile.APISignature = AppSettings("APISignature")
        profile.Environment = AppSettings("Environment")
        caller.APIProfile = profile
        ' Create the request object.
        Dim pp_request As New SetExpressCheckoutRequestType()
        pp_request.Version = AppSettings("APIVersion")
        ' Add request-specific fields to the request.
        ' Create the request details object.
        pp_request.SetExpressCheckoutRequestDetails = New SetExpressCheckoutRequestDetailsType()
        pp_request.SetExpressCheckoutRequestDetails.PaymentAction = paymentAction
        pp_request.SetExpressCheckoutRequestDetails.PageStyle = color
        'Enum for PaymentAction is  PaymentActionCodeType.Sale
        pp_request.SetExpressCheckoutRequestDetails.PaymentActionSpecified = True
        pp_request.SetExpressCheckoutRequestDetails.OrderDescription = type
        pp_request.SetExpressCheckoutRequestDetails.PaymentDetails = New PaymentDetailsType()
        pp_request.SetExpressCheckoutRequestDetails.PaymentDetails.Custom = DateTime.Now.ToLongTimeString
        Dim items(1) As PaymentDetailsItemType
        Dim item1 As PaymentDetailsItemType = New PaymentDetailsItemType
        item1.Name = dealName
        item1.Number = OfferID
        item1.Amount = New BasicAmountType()
        item1.Amount.Value = price

        item1.Amount.currencyID = currencyCodeType
        item1.Quantity = qnt
        items(0) = item1
        pp_request.SetExpressCheckoutRequestDetails.PaymentDetails.PaymentDetailsItem = items
        pp_request.SetExpressCheckoutRequestDetails.OrderTotal = New BasicAmountType()
        pp_request.SetExpressCheckoutRequestDetails.OrderTotal.currencyID = currencyCodeType
        'Enum for currency code is  CurrencyCodeType.USD
        pp_request.SetExpressCheckoutRequestDetails.OrderTotal.Value = paymentAmount
        pp_request.SetExpressCheckoutRequestDetails.CancelURL = cancelURL
        pp_request.SetExpressCheckoutRequestDetails.ReturnURL = returnURL
        '' Execute the API operation and obtain the response.
        Dim pp_response As New SetExpressCheckoutResponseType()
        pp_response = DirectCast(caller.[Call]("SetExpressCheckout", pp_request), SetExpressCheckoutResponseType)
        token = pp_response.Token
        resp = pp_response
        Return pp_response.Ack
    End Function
  • 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-07T05:29:39+00:00Added an answer on June 7, 2026 at 5:29 am

    The only discount option openly available for express checkout is a discount on shipping, but you could pass an item of negative value to work as a discount. I have an example below:

    VERSION = 84.0
    METHOD = SetExpressCheckout
    RETURNURL = test/index.php?action=ECreturn
    CANCELURL = test/index.php?action=ECcancel
    PAYMENTREQUEST_0_AMT = 0.99
    PAYMENTACTION = Sale
    L_PAYMENTREQUEST_0_NAME0 = Test
    L_PAYMENTREQUEST_0_DESC0 = Test
    L_PAYMENTREQUEST_0_AMT0 = 1.00
    L_PAYMENTREQUEST_0_NUMBER0 =11111
    L_PAYMENTREQUEST_0_QTY1 =1
    L_PAYMENTREQUEST_0_NAME1 = Discount item
    L_PAYMENTREQUEST_0_DESC1 = DIscount
    L_PAYMENTREQUEST_0_AMT1 = -0.01
    L_PAYMENTREQUEST_0_NUMBER1 =22222
    L_PAYMENTREQUEST_0_QTY1 =1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently, the user can enter a quantity less than $1 on Paypal's website and
I am developing a site where users can buy features using paypal. If user's
Here's my scenario: I have one page that collects certain data from the user.
On my site user can fill their order basket with items. Once this is
I'm preparing my paypal system and have a separate page that forwards the user
I am using PayPal minicart on a BuyNow Page.But Problem is that User doesn't
I'm using Website Payments Standard on PayPal. So I have a custom purchase page
I need to create a page where a user can go in. List the
So on my website I have paypal enabled but when the user clicks the
I have a website uses Paypal to allow customers to purchase a service 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.