Menu

#2 Connection Timeout Settings

closed
5
2015-02-28
2007-02-09
Anonymous
No

hi.
when i 'configurate' phppaypalpro and using dodirectpayment it shows:
object(SoapFault)#6 (9) {
["message:protected"]=>
string(14) "Internal error"
["string:private"]=>
string(0) ""
["code:protected"]=>
int(0)
["file:protected"]=>
string(43) "dodirectpayment.php"
["line:protected"]=>
int(90)
["trace:private"]=>
array(2) {
[0]=>
array(6) {
["file"]=>
string(43) "dodirectpayment.php"
["line"]=>
int(90)
["function"]=>
string(10) "__soapCall"
["class"]=>
string(10) "SoapClient"
["type"]=>
string(2) "->"
["args"]=>
array(4) {
[0]=>
string(15) "DoDirectPayment"
[1]=>
array(1) {
[0]=>
array(1) {
["DoDirectPaymentRequest"]=>
array(7) {
["PaymentAction"]=>
string(4) "Sale"
["PaymentDetails"]=>
array(12) {
["OrderTotal"]=>
array(2) {
["_"]=>
string(6) "147.00"
["currencyID"]=>
string(3) "USD"
}
["ItemTotal"]=>
array(2) {
["_"]=>
string(5) "40.00"
["currencyID"]=>
string(3) "USD"
}
["ShippingTotal"]=>
array(2) {
["_"]=>
string(5) "25.00"
["currencyID"]=>
string(3) "USD"
}
["HandlingTotal"]=>
array(2) {
["_"]=>
string(5) "75.00"
["currencyID"]=>
string(3) "USD"
}
["TaxTotal"]=>
array(2) {
["_"]=>
string(4) "7.00"
["currencyID"]=>
string(3) "USD"
}
["OrderDescription"]=>
string(10) "order desc"
["Custom"]=>
string(6) "custom"
["InvoiceID"]=>
string(10) "1171043188"
["ButtonSource"]=>
string(0) ""
["NotifyURL"]=>
string(49) "examples.php"
["ShipToAddress"]=>
array(8) {
["Name"]=>
string(11) "firstzlastz"
["Street1"]=>
string(9) "address_z"
["Street2"]=>
string(0) ""
["CityName"]=>
string(6) "city_z"
["StateOrProvince"]=>
string(2) "AK"
["Country"]=>
string(2) "US"
["PostalCode"]=>
string(5) "99999"
["Phone"]=>
string(10) "3059449455"
}
["PaymentDetailsItem"]=>
array(1) {
[0]=>
array(5) {
["Name"]=>
string(8) "testname"
["Number"]=>
string(10) "testitemid"
["Quantity"]=>
int(1)
["Tax"]=>
array(2) {
["_"]=>
string(4) "7.00"
["currencyID"]=>
string(3) "USD"
}
["Amount"]=>
array(2) {
["_"]=>
string(5) "40.00"
["currencyID"]=>
string(3) "USD"
}
}
}
}
["CreditCard"]=>
array(6) {
["CreditCardType"]=>
string(4) "Visa"
["CreditCardNumber"]=>
string(16) "4150887794145110"
["ExpMonth"]=>
string(2) "01"
["ExpYear"]=>
string(4) "2026"
["CardOwner"]=>
array(6) {
["Payer"]=>
string(11) "email2@z.pl"
["PayerID"]=>
string(6) "email2"
["PayerStatus"]=>
string(8) "verified"
["PayerName"]=>
array(3) {
["Salutation"]=>
string(3) "Mr."
["FirstName"]=>
string(6) "firstz"
["LastName"]=>
string(5) "lastz"
}
["PayerCountry"]=>
string(2) "US"
["Address"]=>
array(8) {
["Name"]=>
string(11) "firstzlastz"
["Street1"]=>
string(9) "address_z"
["Street2"]=>
string(0) ""
["CityName"]=>
string(6) "city_z"
["StateOrProvince"]=>
string(2) "AK"
["Country"]=>
string(2) "US"
["PostalCode"]=>
string(5) "99999"
["Phone"]=>
string(10) "3059449455"
}
}
["CVV2"]=>
string(3) "000"
}
["IPAddress"]=>
string(13) "85.89.167.167"
["MerchantSessionId"]=>
string(0) ""
["Version"]=>
string(3) "2.4"
["DoDirectPaymentRequestDetails"]=>
array(6) {
["PaymentAction"]=>
string(4) "Sale"
["PaymentDetails"]=>
array(12) {
["OrderTotal"]=>
array(2) {
["_"]=>
string(6) "147.00"
["currencyID"]=>
string(3) "USD"
}
["ItemTotal"]=>
array(2) {
["_"]=>
string(5) "40.00"
["currencyID"]=>
string(3) "USD"
}
["ShippingTotal"]=>
array(2) {
["_"]=>
string(5) "25.00"
["currencyID"]=>
string(3) "USD"
}
["HandlingTotal"]=>
array(2) {
["_"]=>
string(5) "75.00"
["currencyID"]=>
string(3) "USD"
}
["TaxTotal"]=>
array(2) {
["_"]=>
string(4) "7.00"
["currencyID"]=>
string(3) "USD"
}
["OrderDescription"]=>
string(10) "order desc"
["Custom"]=>
string(6) "custom"
["InvoiceID"]=>
string(10) "1171043188"
["ButtonSource"]=>
string(0) ""
["NotifyURL"]=>
string(49) "examples.php"
["ShipToAddress"]=>
array(8) {
["Name"]=>
string(11) "firstzlastz"
["Street1"]=>
string(9) "address_z"
["Street2"]=>
string(0) ""
["CityName"]=>
string(6) "city_z"
["StateOrProvince"]=>
string(2) "AK"
["Country"]=>
string(2) "US"
["PostalCode"]=>
string(5) "99999"
["Phone"]=>
string(10) "3059449455"
}
["PaymentDetailsItem"]=>
array(1) {
[0]=>
array(5) {
["Name"]=>
string(8) "testname"
["Number"]=>
string(10) "testitemid"
["Quantity"]=>
int(1)
["Tax"]=>
array(2) {
["_"]=>
string(4) "7.00"
["currencyID"]=>
string(3) "USD"
}
["Amount"]=>
array(2) {
["_"]=>
string(5) "40.00"
["currencyID"]=>
string(3) "USD"
}
}
}
}
["CreditCard"]=>
array(6) {
["CreditCardType"]=>
string(4) "Visa"
["CreditCardNumber"]=>
string(16) "4150887794145110"
["ExpMonth"]=>
string(2) "01"
["ExpYear"]=>
string(4) "2026"
["CardOwner"]=>
array(6) {
["Payer"]=>
string(11) "email2@z.pl"
["PayerID"]=>
string(6) "email2"
["PayerStatus"]=>
string(8) "verified"
["PayerName"]=>
array(3) {
["Salutation"]=>
string(3) "Mr."
["FirstName"]=>
string(6) "firstz"
["LastName"]=>
string(5) "lastz"
}
["PayerCountry"]=>
string(2) "US"
["Address"]=>
array(8) {
["Name"]=>
string(11) "firstzlastz"
["Street1"]=>
string(9) "address_z"
["Street2"]=>
string(0) ""
["CityName"]=>
string(6) "city_z"
["StateOrProvince"]=>
string(2) "AK"
["Country"]=>
string(2) "US"
["PostalCode"]=>
string(5) "99999"
["Phone"]=>
string(10) "3059449455"
}
}
["CVV2"]=>
string(3) "000"
}
["IPAddress"]=>
string(13) "85.89.167.167"
["MerchantSessionId"]=>
string(0) ""
["Version"]=>
string(3) "2.4"
}
}
}
}
[2]=>
NULL
[3]=>
object(SoapHeader)#4 (4) {
["namespace"]=>
string(22) "urn:ebay:api:PayPalAPI"
["name"]=>
string(20) "RequesterCredentials"
["data"]=>
array(1) {
["Credentials"]=>
object(SoapVar)#3 (2) {
["enc_type"]=>
int(301)
["enc_value"]=>
array(3) {
["Username"]=>
string(15) "*"
["Password"]=>
string(16) "*"
["Signature"]=>
string(56) "*"
}
}
}
["mustUnderstand"]=>
bool(true)
}
}
}
[1]=>
array(6) {
["file"]=>
string(36) "examples.php"
["line"]=>
int(119)
["function"]=>
string(7) "execute"
["class"]=>
string(15) "DoDirectPayment"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
}
["faultstring"]=>
string(14) "Internal error"
["faultcode"]=>
string(15) "SOAP-ENV:Server"
["detail"]=>
string(26) "Timeout processing request"
}

How to configure it to work??
(Sorry 4 my english)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Try to remove the limit on max_execution_time in the file.

    do this.

    ini_set('max_execution_time', '0');

    That will prevent the timeout problem.

     
  • Israel Ekpo

    Israel Ekpo - 2007-02-10

    Logged In: YES
    user_id=1697590
    Originator: NO

    You can also increase the value of the 'API_CONNECTION_TIMEOUT' constant in the config.inc.php file to whatever works best for you. Right now it is set to 600 seconds which is 10 minutes.

     
  • Israel Ekpo

    Israel Ekpo - 2007-02-10
    • assigned_to: nobody --> perfectvista
    • summary: cionfiguration --> Connection Timeout Settings
     
  • Israel Ekpo

    Israel Ekpo - 2007-02-11
    • status: open --> closed
     
  • Israel Ekpo

    Israel Ekpo - 2007-02-11

    Logged In: YES
    user_id=1697590
    Originator: NO

    Hi,

    As I mentioned in the previous response, increasing the connection timeout might help resolve the problem.

    Also you can increase the max_execution_time in the php.ini file or set it to unlimited by setting it to zero.

     

Log in to post a comment.