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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:38:28+00:00 2026-05-21T21:38:28+00:00

Am using pay pal express checkout for a shopping cart site. My final amount

  • 0

Am using pay pal express checkout for a shopping cart site. My final amount is spliting into site admin fee and seller fee based on a site admin fee percentage.
In my expresscheckout.php file
if i choose site admin percentage as 10 then
10% of total amount is given to site admin and remaining to seller

$siteowner_amount = (($paymentAmount)*$admin_percentage)/100;

$seller_amount = $paymentAmount-$siteowner_amount;

$str = “&PAYMENTREQUEST_0_AMT=”.$seller_amount;

$str = $str . “&PAYMENTREQUEST_1_AMT=”.$siteowner_amount;

and also passing the total amount to my paypalfunction.php file
Am getting the correct total amount in my paypalfunction.php (sum of siteadmin fee and seller fee). and also succeed in paypal sandbox.
But my issue is that when ever am using the site admin percentage less than 10, and even though the total amount is correct , am getting the error

“10401 order total inavlid Transaction refused because of an invalid argument. See additional error messages for details.”

But its works fine for admin percentage 10 and greater. only issue with less than 10 .
i checked the sum total that i am getting in paypalfunction.php ,it is correct.

Please help.
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-21T21:38:29+00:00Added an answer on May 21, 2026 at 9:38 pm

    You’re doing floating-point mathematics with money. This is a bad idea because you’re generally not allowed to post transactions with fractional cents. Beware of rounding which you do not control…

    To debug, take a look at the $seller_amount and the $siteowner_amount. You’ve probably got an overlong decimal in there which needs to be carefully rounded.

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

Sidebar

Related Questions

I am using paypal Express Checkout method in my PHP site to get the
Ive been using express checkout API to convert people's accounts on my site to
I want to integrate Paypal in my site using Express Checkout and notify_url parameter
I Am using the Paypal Express Checkout API on my web site, and encountering
I'm successfully using Paypal Express Checkout in a marketplace web app passing for every
I am using the PayPal API for Express Checkout Integration. Upon setting the Express
Possible Duplicate: Paypal Checkout Express empty cart problem i have an issue with paypal
I am using Paypal lab Integration wizard to put express checkout work on my
i'm using paypal's express checkout API in PHP, and the SetExpressCheckout operation works fine.
I've set up a PayPal Express Checkout, and I'm at the final stage with

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.