PHP code example of naif / paypal

1. Go to this page and download the library: Download naif/paypal library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

naif / paypal example snippets



protected function cards()
{
    return [
      (new Paypal())
      
      //you can set days to retrieve transacitons
      (new Paypal())->days(3)  //default last 5 days
      
      //you can specifivy how many transactions to retreive
      (new Paypal())->count(5) //default is 10 transactions
      
      //you can hide PayPal logo
      (new Paypal())->hideLogo(true) //default false
      
     //Example for all options
     (new Paypal())->days(3)->count(5)->hideLogo(true)
    ];
}