Paypal Api Error 10400
Contents |
here for a quick overview of the site Help Center Detailed answers to any order total is missing paypal express checkout questions you might have Meta Discuss the workings and policies
Paymentrequest_0_amt
of this site About Us Learn more about Stack Overflow the company Business Learn more about setexpresscheckout api call failed hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow
Paypal Error Codes
is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Paypal API error: 10400 up vote 0 down vote favorite Hello i'm having an issue with the paypal API so I set everything up for the GetExpressCheckoutDetails, and now I'm paypal developer trying to do the DoExpressCheckoutPayment. Here is the error I've got: array (size=9) 'TIMESTAMP' => string '2015-10-10T18:56:25Z' (length=20) 'CORRELATIONID' => string '1ad7e8dba8063' (length=13) 'ACK' => string 'Failure' (length=7) 'VERSION' => string '98.0' (length=4) 'BUILD' => string '18308778' (length=8) 'L_ERRORCODE0' => string '10400' (length=5) 'L_SHORTMESSAGE0' => string 'Transaction refused because of an invalid argument. See additional error messages for details.' (length=94) 'L_LONGMESSAGE0' => string 'Order total is missing.' (length=23) 'L_SEVERITYCODE0' => string 'Error' (length=5) Here is my code: My Paypal Class: user = $user; } if($pwd){ $this->pwd = $pwd; } if($signature){ $this->signature = $signature; } if($prod){ $this->endpoint = str_replace('sandbox.','', $this->endpoint); } } public function request($method, $params){ $params = array_merge($params, array( 'METHOD' => 'SetExpressCheckout', 'VERSION' => '98.0', 'USE
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the http://stackoverflow.com/questions/33057830/paypal-api-error-10400 Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Paypal 10400 error Order total is missing up vote 0 down vote favorite 1 i've already checked all answers about this question, but http://stackoverflow.com/questions/32454443/paypal-10400-error-order-total-is-missing i can't find something which makes it works. I'm trying to customize a paypal payement, but either nothing appears in the description either i got the order total is missing answer. I've read that i must do DoExpressCheckout before SetExpressCheckout, with same parameters except return and cancel, but i got the 'Specified method is not supported', so i don't know what to do. I took the code from here: https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECCustomizing/ &METHOD=SetExpressCheckout &RETURNURL=http://... &CANCELURL=http://... &PAYMENTREQUEST_0_PAYMENTACTION=Sale &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 &ALLOWNOTE=1 I've already tried my informations (user, pwd, signature, logo...) with just this: &METHOD=SetExpressCheckout &AMT=10.00 and it works. Now i want to put a description of the item, but i always get 'Order total is missing'. API Response: TIMESTAMP=2015%2d09%2d09T09%3a03%3a23Z &CORRELATIONID=2f370dfafc18 &ACK=Failure &VERSION=98%2e0 &BUILD=17972692 &L_ERRORCODE0=10400 &L_SHORTMESSAGE0=Transaction%20refused%20bec
Hacks » [Resolved] Error 10400 PayPal Express Checkout, please help. [Resolved] Error 10400 PayPal Express Checkout, please help. yadiihair @yadiihair 1 year, 4 months ago DoExpressCheckoutPayment https://wordpress.org/support/topic/error-10400-paypal-express-checkout-please-help API call failed. Error Code: 10400 Error Severity Code: Error Short Error Message: Transaction refused because of an invalid argument. See additional error messages for details. Detailed Error https://www.daniweb.com/programming/web-development/threads/398443/having-trouble-with-paypal-api Message: Order total is missing. https://wordpress.org/plugins/paypal-for-woocommerce/ Viewing 2 replies - 1 through 2 (of 2 total) Plugin Author angelleye @angelleye 1 year, 4 months ago This sort of paypal api thing typically happens if your session is getting wiped out after returning from PayPal during checkout. This can happen if you're using a caching / CDN service on the web server or in WordPress directly. I would try disabling such services and see if the problem goes away. If so, then we've found the culprit, and paypal api error then it's just a matter of configuring the service to work with your shopping cart, which typically means excluding cart/checkout pages from being included in the caching. Please look into that and let me know what you find. Plugin Author angelleye @angelleye 1 year, 4 months ago I have not heard back from you on this, so I'm going to go ahead and close this thread. Let me know if you're still having trouble, though. Viewing 2 replies - 1 through 2 (of 2 total) The topic ‘[Resolved] Error 10400 PayPal Express Checkout, please help.' is closed to new replies. About this Plugin PayPal for WooCommerce Support Threads Reviews Topic Info In: Plugins and Hacks 2 replies 2 participants Last reply from: angelleye Last activity: 1 year, 4 months ago 4.2.2 Status: resolved Topic Tags10400errorpaypal express checkout Forum Search Search for: About Blog Hosting Jobs Support Developers Get Involved Learn Showcase Plugins Themes Ideas WordCamp WordPress.TV BuddyPress bbPress WordPress.com Matt Privacy License / GPLv2 Code is Poetry.
little store to sell some stuff I've got laying around and some nice jewelry I got last week. I would like to give users the option to pay with PayPal exclusively (since it will also process CC's I figure that's all I really need). The problem is that the paypal website has crap for instructions, very unclear without proper examples or code samples or anything. It's been very frustrating for me. So I think I've got a general idea of how the API works and now I am at the first step of my code where I am just trying to get anything to work with the API. I keep getting ACK=Failure. For testing purposes I am using CURL :) $url = "https://api-3t.sandbox.paypal.com/nvp"; $post = "METHOD=SetExpressCheckout&"; $post .= "VERSION=53.0&"; $post .= "USER=sdk-three_api1.sdk.com&"; // sandbox info $post .= "PWD=QFZCWN5HZM8VBG7Q&"; // sandbox info $post .= "SIGNATURE=A-IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU&"; // sandbox info $post .= "PAYMENTREQUEST_0_AMT=10.00&"; $post .= "PAYMENTREQUEST_0_CURRENCYCODE=USD&"; $post .= "RETURNURL=".$settings['site']['url'].urlencode("?page=cart&msg=completed")."&"; $post .= "CANCELURL=".$settings['site']['url'].urlencode("?page=cart&msg=canceled")."&"; $post .= "PAYMENTREQUEST_0_PAYMENTACTION=Sale&"; $post .= "TOTALORDER=10.00&"; // Here is my custom CURL function in which returns the results of the post to the API echo "
".urldecode(str_replace("&",""; I formatted this for easy reading, but here is what it returns: TIMESTAMP=2011-12-05T06:45:59Z CORRELATIONID=aa7d4da682fdf ACK=Failure VERSION=53.0 BUILD=2271164 L_ERRORCODE0=10400 L_SHORTMESSAGE0=Transaction refused because of an invalid argument. See additional error messages for details. L_LONGMESSAGE0=Order total is missing. L_SEVERITYCODE0=Error I looked up error 10400 and it just says "Total Order is missing" with no other explanation. Clearly Total Order is there, so I don't know what to do. I'd call Paypal but there isn't anyone there ATM. I've followed the instructions on PayPals "Getting started with Express Checkout" (https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECGettingStarted), clearly there is something missing. If you have any experience with PayPal API I'd appreciate your input. I'd like to get this finished by tomorrow so I can (hopefully) make some money for rent. Kind of in a hard place right and need to get this going as I've people waiting to buy! Thank you!! api paypal php My name is John. Ask me Procedural PHP and MySQL questions, I'd be happy
",getpage($url,$post,"cookie.txt")))."