Jump to content


Photo

soap/pear errors


  • This topic is locked This topic is locked
5 replies to this topic

#1 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 09 July 2005 - 07:02 PM

is paypal having ussues?

soap fault
SOAP-ENV:Server
(Unknown) Internal error


not sure if it is my server or paypal sending the error

also get a lot of

(10535) The credit card can contain only numbers. Check the number and try again.

anybody have some knowledge of this?

http://www.snippetlibrary.com

#2 PayPal_Cory

PayPal_Cory

    Junior Member

  • Members
  • 351 posts

Posted 11 July 2005 - 09:17 AM

Hi scoutt,

Check the output of your XML that you are generating for the credit card number. This may help you out a bit as I was discussing on the other forums where we were chatting:

http://paypaltech.co...k/html/php.html

PayPal_Cory
Developer Technical Support
PayPal, an eBay Company
http://paypal.com/pdn
:: Any code samples provided are given expressly for demonstration purposes. ::
:: Use at your own risk ::


#3 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 11 July 2005 - 10:27 AM

thanks cory. I have read that many times. I am trying a DP. I am sending this. I have commented out the non-required ones and still had it happen.

if I try the samething in the sandbox I get "this account does not have permission to run this api." or somethign similar. I have also done this code 3 times. little by little until I get the message of internal error. this is comeing from paypal I beleive cause it is in the dump

$name =& Services_PayPal::getType('PersonNameType');
$name->setFirstName($FirstName);
$name->setLastName($LastName);
$name->setMiddleName($MiddleName);

$address =& Services_PayPal::getType('AddressType');
$address->setStreet1($Street1);
$address->setCityName($CityName);
$address->setStateOrProvince($StateOrProvince);
$address->setCountry($CountryName);
$address->setPostalCode($PostalCode);

$payer =& Services_PayPal::getType('PayerInfoType');
//$payer->setPayer($Payer);
//$payer->setPayerID($PayerID);
//$payer->setPayerStatus($PayerStatus);
$payer->setPayerName($name);
//$payer->setPayerCountry($CountryName);
$payer->setAddress($address);

$cc =& Services_PayPal::getType('CreditCardDetailsType');
$cc->setCreditCardType($CreditCardType);
$cc->setCreditCardNumber($CreditCardNumber);
$cc->setExpMonth($ExpMonth);
$cc->setExpYear($ExpYear);
$cc->setCardOwner($payer);
$cc->setCVV2($CVV2);

$amount =& Services_PayPal::getType('BasicAmountType');
$amount->setval($_SESSION['price']);
$amount->setattr('currencyID','USD');

$pdt =& Services_PayPal::getType('PaymentDetailsType');
$pdt->setOrderTotal($amount);
$pdt->setInvoiceID($_SESSION['invoice']);
$pdt->setCustom($_SESSION['custom']);
$pdt->setOrderDescription($_SESSION['item_name']);
$pdt->setNotifyURL("https://www.domain.com/thankyou_api.php");

$details =& Services_PayPal::getType('DoDirectPaymentRequestDetailsType');
$details->setPaymentAction('Authorization');
$details->setPaymentDetails($pdt);
$details->setCreditCard($cc);
$details->setIPAddress($_SERVER['REMOTE_ADDR']);
//$details->setMerchantSessionId('merchantId');

$ddp =& Services_PayPal::getType('DoDirectPaymentRequestType');
$ddp->setDoDirectPaymentRequestDetails($details);

$response = $caller->DoDirectPayment($ddp);
var_dump($response);

http://www.snippetlibrary.com

#4 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 13 July 2005 - 08:16 AM

I have fixed this Cory. and the outcome is purley rediculous.

getting

soap fault
SOAP-ENV:Server
(Unknown) Internal error

as the error, have many reason. one of which no one knows about apparently.

if you send DP a lowercase CountryName it will show this error. if you make it uppercase it works fine. I have verified this as the culprit.

maybe you should add it to the docs suggesting it to be uppercase only.

http://www.snippetlibrary.com

#5 PayPal_Cory

PayPal_Cory

    Junior Member

  • Members
  • 351 posts

Posted 20 July 2005 - 10:26 AM

I will put that in for you as a doc request as well as a feature request so that it will take capitals as well as lower case strings.

PayPal_Cory
Developer Technical Support
PayPal, an eBay Company
http://paypal.com/pdn
:: Any code samples provided are given expressly for demonstration purposes. ::
:: Use at your own risk ::


#6 scoutt

scoutt

    Junior Member

  • Members
  • 139 posts

Posted 21 July 2005 - 03:37 PM

thank you Cory. I also heard that paypal verified a really big error. it sometimes denies valid credit cards, as much as 25% of the purchaes. those are big numbers for a site that does a lot of business.

really sounds like to me this wasn't ready for primetime :)

but thanks for you help along the way, I appreciate it.

http://www.snippetlibrary.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users