Paypal Nvp Error 81002
Contents |
here for a quick overview of the site Help Center Detailed answers paypal error code 10001 to any questions you might have Meta Discuss the workings
Paypal Error Codes
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 NVP API - Keep getting error 81002 up vote 8 down vote favorite 2 I am new to PayPal API, and I'm having trouble calling SetExpressCheckout using CURL in PHP. I have set everything correctly, as far as I'm concerned, but I kept getting an 81002 error "Method Specified is not Supported". The code snippet is below. I got the CA Root certificates file from here. urlencode('andree_1272823561_biz_api1.gmail.com'), 'PWD' => urlencode('1272823576'), 'SIGNATURE' => urlencode('Am1t0wiu2tv7VwZ5ebdeY9zv1GF6Ad0PFz-qTGFFf7vbWU6ee4bxy8KL'), 'VERSION' => urlencode('52.0'), 'PAYMENTACTION' => urlencode('Sale'), 'METHOD' => urlencode('SetExpressCheckout'), 'AMT' => urlencode('52.00'), 'RETURNURL' => urlencode('get_express_checkout_details.php'), 'CANCELURL' => urlencode('index.php') ); $url = 'https://api-3t.sandbox.paypal.com/nvp?' . http_build_query($paypal_data); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem'); $result = curl_exec($curl); curl_close($curl); parse_str($result, $result); ?>
Data sent:
Result:When I run the code, the output is the following: Data sent: Array ( [USER] => andree_1272823561_biz_api1.gmail.com [PWD] => 1272823576 [SIGNATURE] => Am1t0wiu2tv7VwZ5ebdeY9zv1GF6Ad0PFz-qTGFFf7vbWU6ee4bxy8KL [VERSION] => 52.0 [PAYMENTACTION] => Sale [METHOD] => SetExpressCheckout [AMT] => 52.00 [RETURNURL] => get_express
Services [FAQs] [Adv Search] Forum Configuring the Zen Cart Admin PayPal Express Checkout support 81002: Unspecified Method: Method Specified not Supported 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: 81002: Unspecified Method: Method Specified not Supported Results 1 to 10 of 10 Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear http://stackoverflow.com/questions/2758457/paypal-nvp-api-keep-getting-error-81002/4495717 Mode Switch to Hybrid Mode Switch to Threaded Mode 7 Jul 2011,06:03 PM #1 George_Moureau View Profile View Forum Posts View Blog Entries View Articles New Zenner Join Date May 2009 Location Hartwell, Ga Posts 12 Plugin Contributions0 81002: Unspecified Method: Method Specified not Supported I'm getting the above error response when trying to use paypal express checkout. Below it the pertinent log file. I assume I am on https://www.zen-cart.com/showthread.php?182814-81002-Unspecified-Method-Method-Specified-not-Supported an outdated version of the product but am at a loss as to how to upgrade (our company hired a third party who implemented zen, then they went under leaving me the task of trying to figure all this out). https://api-3t.paypal.com/nvp live Request Headers: array ( 0 => 'Content-Type: text/namevalue', 1 => 'X-VPS-Timeout: 45', 2 => 'X-VPS-VIT-Client-Type: PHP/cURL', 3 => 'X-VPS-VIT-Integration-Product: PHP::Zen Cart WPP-NVP', 4 => 'X-VPS-VIT-Integration-Version: 0.1', ) Request Parameters: array ( '' => NULL, ) Response: array ( 'ACK' => 'Failure', 'L_ERRORCODE0' => '81002', 'L_SHORTMESSAGE0' => 'Unspecified Method', 'L_LONGMESSAGE0' => 'Method Specified is not Supported', 'L_SEVERITYCODE0' => 'Error', ) Reply With Quote 7 Jul 2011,06:33 PM #2 stevesh View Profile View Forum Posts View Blog Entries View Articles Black Belt Join Date Feb 2005 Location Lansing, Michigan USA Posts 20,297 Plugin Contributions3 Re: 81002: Unspecified Method: Method Specified not Supported If you search the forums for 81002, you'll see several threads which discuss that error, including this one: http://www.zen-cart.com/forum/showth...ighlight=81002 What version of Zencart are you using ? You can look in Admin - Tools - Server/Version Info if you aren't sure. Reply With Quote 8 Jul 2011,06:19 PM #3 George_Moureau View Profile View Forum Posts View Blog Entries View Articles New Zenner Join Date M
The Archives > My Business Archives > Merchant services (Archive) > 81002 Unspecified Method https://www.paypal-community.com/t5/Merchant-services-Archive/81002-Unspecified-Method/td-p/343268 CommunityCategoryBoardUsers turn on suggestions Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. Showing results for Search instead for Do you http://toughdev.vn/qa/106034/paypal-nvp-api-gi%E1%BB%AF-nh%E1%BA%ADn-%C4%91%C6%B0%E1%BB%A3c-error-81002 mean Ask the Community Reply to topic More topic options Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic to the Top Bookmark Subscribe Printer Friendly paypal error Page « Go to board « Previous Topic Next Topic » coffee4Z Member Posts: 2 Kudos: 0 Accepted Solutions: 0 81002 Unspecified Method 09-22-2011 03:53 PM Hi, I'm stuck trying to implement DoDirectPayment on my web app. This is what I'm sending to https://api-3t.sandbox.paypal.com/nvpUSER=wpp_1316533292_biz_api1.gmail.com&PWD=ZQZR4LJ2DNM6N8JX&SIGNATURE=AdqzVxaQ9-FrkQ9-vRe55llJDqAzASgIJrsz.X1lp-sumk3OqxiSDbqo&METHOD=DoDirectPayment&VERSION=51.0&IPADDRESS=%3A%3A1&PAYMENTACTION=Sale&FIRSTNAME=Test&LASTNAME=User&STREET=1+Main+St+San+Jose&CITY=San+Jose&STATE=CA&ZIP=95131&COUNTRYCODE=US&CREDITCARDTYPE=Visa&ACCT=4727xxxxxxxx3589&EXPDATE=022012&CVV2=123&CURRENCYCODE=USD&AMT=108.70&ITEMAMT=35.85&SHIPPINGAMT=72.85And this is the gateway response:[ACK] => Failure[L_ERRORCODE0] => 81002[L_SHORTMESSAGE0] => Unspecified Method[L_LONGMESSAGE0] => Method Specified is not Supported[L_SEVERITYCODE0] => paypal error code ErrorOther peoples' posts about the 81002 error have shed no light on my issue and I'm unable to get past this error, so I'll really apreciate some help with this.Thanks in advance, Everyone's Tags: 81002methodUnspecified View All (3) 0 Kudos More options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report Inappropriate Content Misty11 Volunteer Advisor Posts: 2084 Kudos: 107 Accepted Solutions: 26 Re: 81002 Unspecified Method 09-27-2011 09:59 AM Hello coffee4Z, You have very good questions, however PayPal does have a Developer Forum that would be able to better answer your questions. Here is a direct link. I hope this will help. Misty 0 Kudos More options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report Inappropriate Content PayPal_RobG PayPal Employee Posts: 182 Kudos: 16 Accepted Solutions: 7 Re: 81002 Unspecified Method 10-02-2011 11:25 PM I suspect an odd character / space that's triggering this. By looking at your API call I'd say it should work fine, but since it obviously isn't, we'll need to dig a bit deeper. Please
Tôi có thể test paypal api của từ localhost Đã hỏi 29/3 bởi Fub_a (206,340 điểm) php paypal paypal-api paypal-sandbox 0 Phiếu 0 Câu trả lời PayPal thích ứng thanh toán Api trước cư dữ liệu người dùng Đã hỏi 24/4 bởi minavorel (830 điểm) c# asp.net api paypal paypal-adaptive-payments 0 Phiếu 0 Câu trả lời PayPal thích ứng thanh toán Api trước cư dữ liệu người dùng Đã hỏi 24/4 bởi I_Radom (220 điểm) c# asp.net api paypal paypal-adaptive-payments 0 Phiếu 6 Câu trả lời Mua sắm giỏ hàng API cho bất kỳ cổng thanh toán? (PayPal ít yêu cầu) Đã hỏi 18/4 bởi it_kerne (260 điểm) java api paypal e-commerce gateway 0 Phiếu 0 Câu trả lời Mua sắm giỏ hàng API cho bất kỳ cổng thanh toán? (PayPal ít yêu cầu) Đã hỏi 18/4 bởi curbywith (670 điểm) java api paypal e-commerce gateway Paypal NVP API - giữ nhận được error 81002 0 Phiếu Đã hỏi 16/3 bởi guvtayna (400 điểm) Tôi mới để PayPal API, và tôi đang gặp sự cố khi gọi điện thoại bằng cách sử dụng SetExpressCheckout CURL trong PHP. Tôi đã thiết lập mọi thứ một cách chính xác, như xa như tôi là có liên quan, nhưng tôi giữ nhận được một 81002 error "phương pháp rõ không hỗ trợ". Đoạn code là dưới đây. Tôi đã nhận CA gốc chứng chỉ file từ ở đây . urlencode('andree_1272823561_biz_api1.gmail.com'), 'PWD' => urlencode('1272823576'), 'SIGNATURE' => urlencode('Am1t0wiu2tv7VwZ5ebdeY9zv1GF6Ad0PFz-qTGFFf7vbWU6ee4bxy8KL'), 'VERSION' => urlencode('52.0'), 'PAYMENTACTION' => urlencode('Sale'), 'METHOD' => urlencode('SetExpressCheckout'), 'AMT' => urlencode('52.00'), 'RETURNURL' => urlencode('get_express_checkout_details.php'), 'CANCELURL' => urlencode('index.php') ); $url = 'https://api-3t.sandbox.paypal.com/nvp?' . http_build_query($paypal_data); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem'); $result = curl_exec($curl); curl_close($curl); parse_str($result, $result); ?>
Data sent:
Result:khi tô