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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:19:41+00:00 2026-06-02T08:19:41+00:00

I am working with the paypal express checkout API and am having issues with

  • 0

I am working with the paypal express checkout API and am having issues with setting the quantity. Below are my URI parameters:

$params = array(
   'METHOD' => 'SetExpressCheckout',
   'PAYMENTREQUEST_0_SHIPPINGAMT' => '0',
   'PAYMENTREQUEST_0_TAXAMT' => '0',
   'PAYMENTREQUEST_0_HANDLINGAMT' => '0',
   'PAYMENTREQUEST_0_AMT' => "50.00",
   'RETURNURL' => $this->_returnUri,
   'CANCELURL' => $this->_cancelUri,
   'HDRIMG' => $this->_logoUri,
   'PAYMENTREQUEST_0_CURRENCYCODE' => 'GBP',
   'L_PAYMENTREQUEST_0_DESC0' => 'Product description',
   'L_PAYMENTREQUEST_0_NAME0' => 'Product name',
   'L_PAYMENTREQUEST_0_AMT0' => "50.00",
   'L_PAYMENTREQUEST_0_QTY0' => "2"
);

If L_PAYMENTREQUEST_0_QTY0 is set to 1 the process is fine. However, changing it to 2 and adding ‘PAYMENTREQUEST_0_ITEMAMT’ => “100.00” to the array gives me the following error:

TIMESTAMP: 2012-04-17T12:11:16Z
CORRELATIONID: da43f6c91254
ACK: Failure
VERSION: 88.0
BUILD: 2808426
L_ERRORCODE0: 10413
L_SHORTMESSAGE0: Transaction refused because of an invalid argument. See additional error messages for details.
L_LONGMESSAGE0: The totals of the cart item amounts do not match order amounts.
L_SEVERITYCODE0: Error

I have tried for hours on end to fix it and have given up. Can someone highlight want I need to do to get it to work ?

  • 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-02T08:19:47+00:00Added an answer on June 2, 2026 at 8:19 am

    You’re missing an ITEMAMT. See also my answer in Paypal Express checkout with shipping cost and error which contains a working example with multiple quantities.

    &L_PAYMENTREQUEST_0_NAME0=10% Decaf Kona Blend Coffee  
    &L_PAYMENTREQUEST_0_NUMBER0=623083  
    &L_PAYMENTREQUEST_0_DESC0=Size: 8.8-oz 
    &L_PAYMENTREQUEST_0_AMT0=9.95  
    &L_PAYMENTREQUEST_0_QTY0=2  
    &L_PAYMENTREQUEST_0_NAME1=Coffee Filter bags  
    &L_PAYMENTREQUEST_0_NUMBER1=623084  
    &L_PAYMENTREQUEST_0_DESC1=Size: Two 24-piece boxes  
    &L_PAYMENTREQUEST_0_AMT1=39.70  
    &L_PAYMENTREQUEST_0_QTY1=2  
    &PAYMENTREQUEST_0_ITEMAMT=99.30  
    &PAYMENTREQUEST_0_TAXAMT=2.58  
    &PAYMENTREQUEST_0_SHIPPINGAMT=3.00  
    &PAYMENTREQUEST_0_HANDLINGAMT=2.99  
    &PAYMENTREQUEST_0_SHIPDISCAMT=-3.00  
    &PAYMENTREQUEST_0_INSURANCEAMT=1.00  
    &PAYMENTREQUEST_0_AMT=105.87  
    &PAYMENTREQUEST_0_CURRENCYCODE=USD  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working with Paypal API is the worst experience so far for me as a
Am working on Mobile Express Checkout LIbrary . I just redirect my app to
I'm working on Paypal integration in my website, following Paypal's API specifications. I'm testing
I am working on using PayPal's API for TransactionSearch - https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_TransactionSearch . The sample
I am implementing the Express Checkout API for a web application, and everything works
I want to integrate Paypal in my site using Express Checkout and notify_url parameter
I am working on Paypal IPN. My code works fine. I am getting complete
I'm working with oscommerce and i have problem with Paypal ipn When someone makes
Working on a movie website and would love to find an API that I
I have a perfectly working <form> with <input type=hidden ... as parameters to send

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.