bigup401 has asked for the wisdom of the Perl Monks concerning the following question:

i have tried modules like Net::PayPal and Business::PayPal::API. but all they dont support checking of transaction id. they only supporting checking payment id. is there any module can be used to check transaction id instead payment id

Replies are listed 'Best First'.
Re: paypal module
by Your Mother (Bishop) on Nov 04, 2018 at 17:31 UTC

      thanks @Your Monther, i saw the module now.

      let me give it a try

500 timeout on paypal module
by bigup401 (Pilgrim) on Nov 04, 2018 at 18:51 UTC

    500 read timeout at Business/PayPal/ line 164.: /usr/home/bigup401/public_html/prod/ localhost Sun Nov 04 13:44:13 2018 error pid 17698 mod_cgi.c(175): client AH01215: Sun Nov 4 13:44:13 2018 at line 21.: /usr/home/bigup401/public_html/prod/

    use Business::PayPal::API::TransactionSearch; use Data::Dumper; $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; my $pp = Business::PayPal::API::TransactionSearch->new( Username => 'username', Password => 'password', CertFile => 'paypal_cert_key_pem.txt', KeyFile => 'paypal_cert_key_pem.txt', sandbox => 0, timeout => 5 ); $transid = '98832432992384234'; my $transactions = $pp->TransactionSearch( TransactionID => $transid ); print "Content-type: text/html\n\n"; for my $rec ( @$transactions ) { print "Record:\n"; print "TransactionID: " . $rec->{TransactionID} . "\n"; print "Payer Email: " . $rec->{Payer} . "\n"; print "Amount: " . $rec->{GrossAmount} . "\n\n"; print "Status: " . $rec->{Status} . "\n\n"; }
      Hi, it would seem the next step would be to turn on debugging in the PayPal module. From the perldoc:
      DEBUGGING You can see the raw SOAP XML sent and received by Business::PayPal::AP +I by setting its $Debug variable: $Business::PayPal::API::Debug = 1; $pp->SetExpressCheckout( %args ); this will print the XML being sent, and dump a Perl data structure of +the SOM received on STDERR (so check your error_log if running inside + a web server). If anyone knows how to turn a SOAP::SOM object into XML without settin +g outputxml(), let me know.

      There is also a section in the perldoc on Error Handling. You might want to setup more error checking in your code to find the cause of the timeout.

      I'm not really a human, but I play one on earth. ..... an animated JAPH

        after adding debug to 1. look wat i got LOL

        localhost [Sun Nov 04 18:13:50 2018] [error] [pid 628] mod_cgi.c(175): + [client] AH01215: <?xml version="1.0" encoding= +"UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.or +g/soap/encoding/" xmlns:soap=" +e/" xmlns:soapenc="" xmlns:x +sd="" xmlns:xsi=" +01/XMLSchema-instance"><soap:Header><RequesterCredentials soap:mustUn +derstand="1" xmlns="urn:ebay:api:PayPalAPI"><Credentials xmlns="urn:e +bay:apis:eBLBaseComponents"><Username>username</Username><Password>pa +ssword</Password><Signature /><Subject /></Credentials></RequesterCre +dentials></soap:Header><soap:Body><TransactionSearchReq xmlns="urn:eb +ay:api:PayPalAPI"><TransactionSearchRequest xsi:type="ns:TransactionS +earchRequestType"><Version xmlns="urn:ebay:apis:eBLBaseComponents" xs +i:type="xs:string">61.0</Version><StartDate xsi:nil="true" xsi:type=" +xs:dateTime" /><TransactionID xsi:type="xs:string">88343499343434</Tr +ansactionID></TransactionSearchRequest></TransactionSearchReq></soap: +Body></soap:Envelope>

      STOP creating new threads for the same problem!


      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

        i think that was other thread asking wat module can i use. and now this thread point to the error i got using the same module