Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le forum de Communauté ne sera plus disponible à partir du 30 Juin 2025. Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎Apr-30-2012
advcha
advcha Contributor
Contributor
2
Posts
0
Kudos
0
Solutions
Your 3rd PayPal Anniversary
Your PayPal Anniversary
Your 5th PayPal Anniversary
Pioneer
The Return
Active
View all
Latest Contributions by advcha
  • Topics advcha has Participated In
  • Latest Contributions by advcha

Payment Action of Authorization is not allowed wit...

by advcha Contributor in Merchant Products and Services Archives
‎Feb-01-2020 08:47 PM
‎Feb-01-2020 08:47 PM
Hello,   I got this problem when I use paypal express checkout on Magento 2.3. I tried to use sandbox. It seems run well. I can see the paypal login form popup and can login successfully. But after I click 'Pay' button and the popup is closed then I saw a flash error message on my Magento 2 site.           PayPal gateway has rejected request. PaymentAction of Authorization is not allowed with Unilateral and Non-Credentialed authentication (#10481: Transaction refused because of an invalid argument. See additional error messages for details).           Then I inspected the log file. I see the debug message but I have no idea what is wrong. Is this caused by Magento and/or paypal? Here is the debug message:           [2020-02-01 04:40:06] main.DEBUG: array ( 'url' => 'https://api-3t.sandbox.paypal.com/nvp', 'DoExpressCheckoutPayment' => array ( 'TOKEN' => 'EC-5TP478471D8088941', 'PAYERID' => '5YLR7L3UWZK6Y', 'PAYMENTACTION' => 'Authorization', 'AMT' => '499.00', 'CURRENCYCODE' => 'AUD', 'BUTTONSOURCE' => 'Magento_Cart_Community', 'NOTIFYURL' => 'https://xxx.com.au/paypal/ipn/', 'RETURNFMFDETAILS' => 1, 'SHIPPINGAMT' => '0.00', 'ITEMAMT' => '499.00', 'TAXAMT' => '0.00', 'L_NUMBER0' => NULL, 'L_NAME0' => '(CLEARANCE) Shoei J.O Hawker TC-1 Helmet - Red/Black', 'L_QTY0' => 1, 'L_AMT0' => '499.00', 'BUSINESS' => NULL, 'EMAIL' => 'xxx', 'FIRSTNAME' => 'First', 'LASTNAME' => 'Last', 'MIDDLENAME' => NULL, 'SALUTATION' => NULL, 'SUFFIX' => NULL, 'COUNTRYCODE' => 'AU', 'STATE' => 'NSW', 'CITY' => 'Melbourne', 'STREET' => 'Second Ave.', 'ZIP' => '3000', 'PHONENUM' => '0489 849 999', 'SHIPTOCOUNTRYCODE' => 'AU', 'SHIPTOSTATE' => 'NSW', 'SHIPTOCITY' => 'Melbourne', 'SHIPTOSTREET' => 'Second Ave.', 'SHIPTOZIP' => '3000', 'SHIPTOPHONENUM' => '0489 849 999', 'SHIPTOSTREET2' => '', 'STREET2' => '', 'SHIPTONAME' => 'First Last', 'ADDROVERRIDE' => 1, 'METHOD' => 'DoExpressCheckoutPayment', 'VERSION' => '72.0', 'USER' => '****', 'PWD' => '****', 'SIGNATURE' => '****', ), 'response' => array ( 'TOKEN' => 'EC-5TP478471D8088941', 'SUCCESSPAGEREDIRECTREQUESTED' => 'false', 'TIMESTAMP' => '2020-02-01T04:40:05Z', 'CORRELATIONID' => '577d54e9fc5fa', 'ACK' => 'Failure', 'VERSION' => '72.0', 'BUILD' => '54085969', 'L_ERRORCODE0' => '10481', 'L_SHORTMESSAGE0' => 'Transaction refused because of an invalid argument. See additional error messages for details.', 'L_LONGMESSAGE0' => 'PaymentAction of Authorization is not allowed with Unilateral and Non-Credentialed authentication.', 'L_SEVERITYCODE0' => 'Error', ), )             I'd really appreciate if anybody can help. Thanks. ... View more
Labels:
  • Labels:
  • Express Checkout
  • PayPal Buttons
  • PayPal Here

Joomla Paypal IPN always return INVALID

by advcha Contributor in About Payments (Archive)
‎Apr-30-2012 10:30 PM
‎Apr-30-2012 10:30 PM
Hi, I've problem to veryfied the paypal payment on my joomla 1.5 website. I always get "INVALID" although the payment is success. i cannot get POST value from paypal, only can GET value. what's wrong with these code or the setting. my paypal setting in sandbox.paypal.com IPN : Turn On Message delivery : enabled notification url : http://mysite.com/index.php?option=com_order&type=orders auto return : on return url : http://mysite.com/index.php?option=com_order&type=orders PDT : on Encrypted Website Payments : off PayPal Account Optional : off           in mycomponent joomla                            payment.php <form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr" name="paypal"> <input type="hidden" value="_xclick" name="cmd"> <input type="hidden" value="myname_1335697493_biz_email" name="business"> <input type="hidden" value="test payment" name="item_name" id="item_name"> <input type="hidden" value="11" name="item_number" id="item_number"> <input type="hidden" value="0.1" name="amount" id="amount"> <input type="hidden" value="USD" name="currency_code" id="currency_code"> <input type="hidden" value="<?php echo JURI::base();?>index.php?option=com_order&type=orders" name="return" id="return"> <input type="hidden" value="<?php echo JURI::base();?>index.php?option=com_order&type=orders" name="cancel_return" id="cancel_return"> <input type="hidden" value="<?php echo JURI::base();?>index.php?option=com_order&task=orders" name="notify_url" id="notify_url"> <input type="hidden" name="rm" value="2"> <table class="tblpay"> ..... </table> </form>                                         on my controller.php function display() { $user =& JFactory::getUser(); $type = JRequest::getVar('type'); switch($type) { ... case 'orders': $viewName = 'orders'; $viewLayout = 'orderslayout'; if (JRequest::getVar('tx') != null){ $this->processpayment(); $viewLayout = 'paymentlayout'; } break; ... } function processpayment(){ // Response from Paypal // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; $get = JRequest::get('get'); foreach ($get as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // assign posted variables to local variables $data['amount'] = JRequest::getVar('amt'); $data['currency'] = JRequest::getVar('cc'); $data['cm'] = JRequest::getVar('cm'); $data['idorder'] = JRequest::getVar('item_number'); $data['st'] = JRequest::getVar('st'); $data['tx'] = JRequest::getVar('tx'); $data['option'] = JRequest::getVar('option'); $data['type'] = JRequest::getVar('type'); $data['paymentresult'] = ""; // post back to PayPal system to validate $header = "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('ssl://www.sandbox.paypal.com', 443, $errno, $errstr, 30); if (!$fp) { // HTTP ERROR } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp($res, "VERIFIED") == 0) { ... }else if (strcmp ($res, "INVALID") == 0) { ... } } fclose ($fp); } //$redirectTo = str_replace("amp;","",JRoute::_('index.php?option='.JRequest::getVar('option').'&type=orders&layout=paymentlayout')); //$this->setRedirect($redirectTo, ''); }   this is the result i get from paypal (use jdump): [string] option = "com_order" [string] type = "orders" [string] tx = "9D9224627W344360N" [string] st = "Completed" [string] amt = "0.10" [string] cc = "USD" [string] cm = "" [string] item_number = "41" [string] Itemid = "" --> why i get this because i never send itemid? ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros