php - paypal adaptive accounts installation difficulties -


i trying install paypal adaptive accounts api using php.

i have set developer account, test accounts , app , tested parameters via paypal tool. need install api on our test site.

i have used how check if curlssl working properly ensure have curl set up.

i followed instructions here using php tab. installing without composer connected via ssl client , used command instructed.

curl https://raw.github.com/paypal/adaptiveaccounts-sdk-php/stable-php5.3/samples/install.php | php

however think repository has been moved , tracked down here.

meaning command should

curl https://raw.githubusercontent.com/paypal/adaptiveaccounts-sdk-php/master/samples/install.php | php

i may have found wrong code because not install. error output is

composer not installed or 'usecomposer' set false in install.php. running custom installation ...  downloading adaptiveaccounts-sdk-php - v2.6.106  downloading sdk-core-php - v1.4.3  generating autoload file  fatal error: allowed memory size of 67108864 bytes exhausted (tried allocate 71 bytes) in - on line 340 

i have checked install file , following lines

// flag control whether composer should used installation $usecomposer = false; 

confirm usecomposer set false makes me think have found wrong install file.

so know correct location point curl? or doing else wrong? note install appears try run "custom installation" , fails memory error.

part of solved. install.php file had been removed accidentally .

so can run

curl -k -l https://raw.github.com/paypal/adaptiveaccounts-sdk-php/stable-php5.3/samples/install.php | php

this gave me further error

this install script suppoorts namespace based sdk

so directed non-namespaced version of of sdk

curl -k -l https://raw.github.com/paypal/adaptiveaccounts-sdk-php/blob/stable/samples/install.php | php

i started

fatal error: allowed memory size of 12582912 bytes exhausted (tried allocate 71 bytes) in - on line 340

so goto fork file can edit , assign @ top. successful with

ini_set("memory_limit","128m"); 

this increase maximum amount of memory available php 128 mb running script. temporary setting , affect script in.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -