Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Express Checkout #20

Closed
darkmatus opened this issue Jul 8, 2014 · 5 comments
Closed

Error with Express Checkout #20

darkmatus opened this issue Jul 8, 2014 · 5 comments

Comments

@darkmatus
Copy link

Hi,
I try to create an ExpressCheckout like the Example from the Readme.
But all I get is an Error with the following content (dump of response):

protected '_rawResponse' => string 'ACK=Failure&L_ERRORCODE0=81002&L_SHORTMESSAGE0=Unspecified%20Method&L_LONGMESSAGE0=Method%20Specified%20is%20not%20Supported&L_SEVERITYCODE0=Error' (length=146)
  protected '_success' => boolean false
  protected '_errors' => 
    array (size=1)
      0 => string 'Method Specified is not Supported' (length=33)
  protected '_response' => null
  protected '_multiFieldMap' => 
    array (size=3)
      'ERRORS' => 
        array (size=4)
          0 => string 'LONGMESSAGE' (length=11)
          1 => string 'SEVERITYCODE' (length=12)
          2 => string 'SHORTMESSAGE' (length=12)
          3 => string 'ERRORCODE' (length=9)
      'FILTERS' => 
        array (size=2)
          0 => string 'FMFfilterID' (length=11)
          1 => string 'FMFfilterNAME' (length=13)
      'ITEMS' => 
        array (size=15)
          0 => string 'NAME' (length=4)
          1 => string 'DESC' (length=4)
          2 => string 'AMT' (length=3)
          3 => string 'NUMBER' (length=6)
          4 => string 'QTY' (length=3)
          5 => string 'TAXAMT' (length=6)
          6 => string 'ITEMWEIGHTVALUE' (length=15)
          7 => string 'ITEMWEIGHTUNIT' (length=14)
          8 => string 'ITEMLENGTHVALUE' (length=15)
          9 => string 'ITEMLENGTHUNIT' (length=14)
          10 => string 'ITEMWIDTHVALUE' (length=14)
          11 => string 'ITEMWIDTHUNIT' (length=13)
          12 => string 'ITEMHEIGHTVALUE' (length=15)
          13 => string 'ITEMHEIGHTUNIT' (length=14)

Seems there is an error with the current version or did I something wrong?

@steverhoades
Copy link
Contributor

Can you post how your using the code?

@darkmatus
Copy link
Author

I use it as followed:

$paypalConfig = new \SpeckPaypal\Element\Config($config);

//set up http client
$client = new \Zend\Http\Client;
$client->setMethod('POST');
$client->setAdapter(new \Zend\Http\Client\Adapter\Curl);
$paypalRequest = new Request;
$paypalRequest->setClient($client);
$paypalRequest->setConfig($config);

$paymentDetails = new PaymentDetails(array(
    'amt' => $amount
));
$express = new SetExpressCheckout(array('paymentDetails' => $paymentDetails));
$express->setReturnUrl('http://www.someurl.com/return');
$express->setCancelUrl('http://www.someurl.com/cancel');

var_dump($paypalRequest->send($express));

The dump only for testing and integration issues.

@steverhoades
Copy link
Contributor

@darkmatus I dont see any issues with that. Can you give me the output (strip out your credentials) of the raw request?

var_dump($paypalRequest->getClient()->getLastRawRequest());

I am unable to reproduce the issue your describing. I have updated the integration test for SetExpressCheckout (it was previously failing). You might try it to see if your getting similar results with that?

@darkmatus
Copy link
Author

I cant show it to you at this time. I removed the module and has my own REST-Client for PayPal written ;)
I show it to you in the next days. Will test it in my testing program

@steverhoades
Copy link
Contributor

unable to reproduce. no further response from @darkmatus closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants