Paypal Api Error 10401
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 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: L_ERRORCODE0:10401 Order total is invalid and invalid argument up vote 4 down vote favorite 3 I followed https://www.paypal-labs.com/integrationwizard/ecpaypal/main.php to implement paypal sandbox account in my application. My code is spanned in 3 jsp pages such as index.jsp -> expresscheckout.jsp -> paypalfunctions.jsp . expresscheckout.jsp <%@ include file="paypalfunctions.jsp"%> <% String paymentAmount = "25"; String currencyCodeType = "USD"; String paymentType = "Sale"; String returnURL = "http://2.appid.appspot.com/sucess.jsp"; String cancelURL = "http://2.appid.appspot.com/canceled.jsp"; HashMap nvp = CallShortcutExpressCheckout(paymentAmount, currencyCodeType, paymentType, returnURL, cancelURL, session); String strAck = nvp.get("ACK").toString(); if (strAck != null && strAck.equalsIgnoreCase("Success")) { //' Redirect to paypal.com RedirectURL(nvp.get("TOKEN").toString(), response); } else { String ErrorCode = nvp.get("L_ERRORCODE0").toString(); String ErrorShortMsg = nvp.get("L_SHORTMESSAGE0").toString(); String ErrorLongMsg = nvp.get("L_LONGMESSAGE0").toString(); String ErrorSeverityCode = nvp.get("L_SEVERITYCODE0") .toString(); } %> paypalfunctions.jsp is follows : <% gv_APIUserName = "myid_78955666_biz_api1.gmail.com"; gv_APIPassword = "1347856389"; gv_APISignature = "AFcWxV21C7fd0v3bYYYRCpSSRl31AuP4KrN6UABOJ1fGdNRYoIpc.qjr"; //BN Code is only applicable for partners gv_BNCode = "PP-ECWizard"; boolean bSandbox = true; if (bSandbox == true) { gv_APIEndpoint = "https://api-3t.sandbox.paypal.com/nvp"; PAYPAL_URL = "https://www.sandbox.paypal.com/webscr?cmd=_express-checkout&token="; } else { gv_APIEndpoint = "https://api-3t.paypal.com/nvp"; PAYPAL_URL = "https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token="; } String HTTPREQUEST_PROXYSETTING_SERVER = ""; String HTTPREQUEST_PROXYSETTING_PORT = ""; boolean USE_PROXY = false; gv_Version = "2.3"; //WinObjHttp Request proxy settings. gv_ProxyServer =
Services [FAQs] [Adv Search] Forum Configuring the Zen Cart Admin PayPal Express Checkout support error code 10401 - Not happy setup? If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Thread: error code 10401 - Not happy setup? Results 1 to 4 of 4 Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 9 http://stackoverflow.com/questions/12471304/paypal-l-errorcode010401-order-total-is-invalid-and-invalid-argument Mar 2008,07:50 PM #1 PingPing View Profile View Forum Posts View Blog Entries View Articles New Zenner Join Date Mar 2008 Posts 29 Plugin Contributions0 error code 10401 - Not happy setup? Need help setting up PayPal Express Checkout. Getting RED Color error message when trying to purchase product: Error An error occurred when we tried to contact the payment processor. Please try again, select an alternate payment method, or contact the store owner https://www.zen-cart.com/showthread.php?91081-error-code-10401-Not-happy-setup for assistance. (10401) 10401 Transaction refused because of an invalid argument. See additional error messages for details. - Order total is invalid. What does this 10401 mean? Is there a debug page or code listing somewhere I can check? I tested the curl and it passed well. My PayPal is personal account and went into the PayPal to access the Express Checkout IPN stuff and copy/paste it into the Zen Cart Module Configuration ... but I think I am missing something because of this error message when performing purchase. Would someone kindly advise. Thanks! 10 Mar 2008,02:55 AM #2 PingPing View Profile View Forum Posts View Blog Entries View Articles New Zenner Join Date Mar 2008 Posts 29 Plugin Contributions0 Re: error code 10401 - Not happy setup? It appears my issue was my fault! I accept responsibility for my experience. It appears I did not fully configure the PayPal Express Checkout ... missed the part where I had to Turn ON PayPal IPN and use tell it, my paypal account, proper URL. I wasn't expecting this and overlooked it. 3. In your PayPal account, enable Instant Payment Notification: under "Profile", select Instant Payment Notification Preferences * click the checkbox to enable IPN * if there is not already a URL specified, set the URL to: https://www.mydomain.com/mystoredire...in_handler.php This was done with prop
Adaptive Payments Payouts Payouts Mass Pay Authentication & Security Vault Log In with PayPal https://developer.paypal.com/docs/classic/api/errors/ Adaptive Accounts Permissions APIs REST APIs API Overview Authentication and Headers API Reference REST SDKs REST SDKs Quickstart NVP / SOAP API reference Support Enter search term Dashboard Dashboard My Apps & Credentials My Account Sandbox Accounts Notifications Transactions IPN Simulator Webhooks Simulator Webhooks Events Live Transactions paypal api Webhooks Events Log In ← Back to APIsError CodesGeneral ErrorsAddressVerify ErrorsBilling Agreements ErrorsSetCustomerBillingAgreement ErrorsGetBillingAgreementCustomerDetails ErrorsCreateBillingAgreement ErrorsBAUpdate ErrorsDirect Payments ErrorsDoDirectPayment ErrorsDoDirectPayment Processor Response CodesDoReferenceTransaction ErrorsExpress Checkout ErrorsSetExpressCheckout ErrorsGetExpressCheckoutDetails ErrorsDoExpressCheckoutPayment ErrorsAuthorization & Capture ErrorsManagePendingTransactionStatus ErrorsMass Payments ErrorsMassPay ErrorsMassPay Failed Transactions IPN Reason CodesRecurring Payments ErrorsRefunds ErrorsRefundTransaction ErrorsDoNonReferencedCredit ErrorsRefund ErrorsTransactionSearch ErrorsUniversal paypal api error Air Travel Plans ErrorsDoUATPAuthorization ErrorsDoUATPExpressCheckoutPayment ErrorsValidation Errors API error codes A PayPal API operation can return multiple error and warning codes. Error category Error codes General errors 10002 to 10101 AddressVerify errors 10004 to 10014 Billing Agreement errors 10004 to 13200 Direct Payments errors (Website Payments Pro) 10001 to 15012 DoReferenceTransaction errors 10001 to 18014 Express Checkout errors 10001 to 19065 ManagePendingTransactionStatus errors 10014 to 11614 Mass Payments errors 10001 to 10327 Recurring Payments errors 10001 to 15004 Refund errors 10001 to 15011 500000 to 589061 TransactionSearch errors 10001 to 11002 Universal Air Travel Plan (UATP) errors 10001 to 15010 Validation errors 81000 to 99998 Documentation Make First REST Call REST API Reference NVP / SOAP API Reference Alphabetical Directory Dashboard My Apps My Account Sandbox Accounts Sandbox Transactions Live Transactions Support FAQ Stack Overflow PayPal Technical Support PayPal Support Resources Pay