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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:29:44+00:00 2026-05-26T08:29:44+00:00

im facing a big problem when im trying to SetExpressCheckout using nvp SDK when

  • 0

im facing a big problem when im trying to SetExpressCheckout using nvp SDK
when passing the parameter &PAYMENTREQUEST_0_CURRENCYCODE to the checkout link it return error

    SetExpressCheckout failed: Array ( 
[TIMESTAMP] => 2011%2d10%2d11T00%3a58%3a56Z 
[CORRELATIONID] => fa1dd71c19e46 
[ACK] => Failure 
[VERSION] => 82%2e0 
[BUILD] => 2133933 
[L_ERRORCODE0] => 99998 
[L_ERRORCODE1] => 10605 
[L_SHORTMESSAGE0] => Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e 
[L_SHORTMESSAGE1] => Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e 
[L_LONGMESSAGE0] => Currency%20is%20not%20supported [L_LONGMESSAGE1] => Currency%20is%20not%20supported 
[L_SEVERITYCODE0] => Error [L_SEVERITYCODE1] => Error )

i did everything to pass this error but i didn’t
im sure that the currency code is valid
i have to set it GBP but even when set it to USD its return error
if i removed this parameter &PAYMENTREQUEST_0_CURRENCYCODE everything went ok with no problem but in USD
if i included this parameter &PAYMENTREQUEST_0_CURRENCYCODE with any currency code it return the same error
the full var_dump

 array(13) { ["TIMESTAMP"]=> string(28) "2011%2d10%2d13T02%3a55%3a21Z" 
["CORRELATIONID"]=> string(13) "4e167b7f7ec44" 
["ACK"]=> string(7) "Failure" 
["VERSION"]=> string(6) "82%2e0" 
["BUILD"]=> string(7) "2183220" 
["L_ERRORCODE0"]=> string(5) "99998" 
["L_ERRORCODE1"]=> string(5) "10605" 
["L_SHORTMESSAGE0"]=> string(122) "Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e" 
["L_SHORTMESSAGE1"]=> string(122) "Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e" 
["L_LONGMESSAGE0"]=> string(31) "Currency%20is%20not%20supported" 
["L_LONGMESSAGE1"]=> string(31) "Currency%20is%20not%20supported" 
["L_SEVERITYCODE0"]=> string(5) "Error" 
["L_SEVERITYCODE1"]=> string(5) "Error" } bool(true) SetExpressCheckout failed:

this is the api request

$actions .= '
&L_PAYMENTREQUEST_0_NAME1=Name Example
&L_PAYMENTREQUEST_0_NUMBER1=Product Code Example
&L_PAYMENTREQUEST_0_DESC1=Product Title
&L_PAYMENTREQUEST_0_AMT1='.number_format(50, 2, '.', '').'
&L_PAYMENTREQUEST_0_QTY1=1';
$paymentAmount = urlencode($sum);
$ship = urlencode($del);
$tot = $paymentAmount + $ship ;
$currencyID = urlencode(GBP);                           // or other currency code ('GBP', 'EUR', 'JPY', 'CAD', 'AUD')
$returnURL = urlencode("http://www.example.net/index.php");
$cancelURL = urlencode('http://www.example.net/index.php');
$actions .= "
&PAYMENTREQUEST_0_PAYMENTACTION=Sale
&PAYMENTREQUEST_0_ITEMAMT=".$paymentAmount."
&PAYMENTREQUEST_0_SHIPPINGAMT=".$ship."
&PAYMENTREQUEST_0_AMT=".$tot."
&PAYMENTREQUEST_0_ALLOWNOTE=1
&PAYMENTREQUEST_0_CURRENCYCODE=".$currencyID."
";
// Add request-specific fields to the request string.
$nvpStr = "&$actions&ReturnUrl=$returnURL&CANCELURL=$cancelURL";

// Execute the API operation; see the PPHttpPost function above.
$httpParsedResponseAr = PPHttpPost('SetExpressCheckout', $nvpStr);

if("SUCCESS" == strtoupper($httpParsedResponseAr["ACK"]) || "SUCCESSWITHWARNING" == strtoupper($httpParsedResponseAr["ACK"])) {
    // Redirect to paypal.com.
    $token = urldecode($httpParsedResponseAr["TOKEN"]);
    $payPalURL = "https://www.paypal.com/webscr&cmd=_express-checkout&token=$token";
    if("sandbox" === $environment || "beta-sandbox" === $environment) {
        $payPalURL = "https://www.$environment.paypal.com/webscr&cmd=_express-checkout&token=$token";
    }
    header("Location: $payPalURL");
    exit;
} else  {
    exit('SetExpressCheckout failed: ' . print_r($httpParsedResponseAr, true));
}
  • 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-26T08:29:44+00:00Added an answer on May 26, 2026 at 8:29 am

    problem resolved i passed the currency code within the url instead of define it in the parameters variable

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

Sidebar

Related Questions

I'm facing a big problem with jQuery Lightbox effect and mod_rewrite. When trying to
i am using JGraph for a project. I am facing a big problem and
I am facing a big big problem with adding a static page to my
I am a novice in unix. I am facing a problem in viewing big
I am facing problem in big decimal no. Following code snippet will explain my
I'm facing a big problem. My app is loading XML files (within AsyknTask) from
I have facing a big problem with my webView application for android. It was
i am facing a big speed problem with my application..we have to go for
Facing problem with every fetch i want to make using EF Query model.Place here
I´m facing this problem: I have a Button that works like a WrapPanel using

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.