=') === true) { //exec('php -S -t ' . __DIR__ . '/'); $cmd = "php -S localhost:5000 -t " . __DIR__ . '/'; $descriptors = array( 0 => array("pipe", "r"), 1 => STDOUT, 2 => STDERR, ); $proc = proc_open($cmd, $descriptors, $pipes); if ($proc === false) { fprintf(STDERR, "Unable to launch PHP's built-in web server.\n"); exit(2); } fclose($pipes[0]); // Close the process' stdin. $exitCode = proc_close($proc); // Wait for process to exit. exit($exitCode); } } else { ?> PayPal REST API Samples

REST API Samples

These examples are created to experiment with the PayPal-PHP-SDK capabilities. Each examples are designed to demonstrate the default use-cases in each segment. Many examples should be executable, and should allow you to experience the default behavior of our sdk, to expedite your integration experience.