This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
class PaypalController extends Controller | |
{ | |
public function validatr($paymentID, $paymentToken, $payerID){ | |
$paypalEnv='sandbox'; // Or 'production' | |
if(getenv('client_status')=='production'){ | |
$paypalURL='https://api.paypal.com/v1/'; // URL of the call | |
$paypalClientID=getenv('production_client_id'); | |
$paypalSecret=getenv('production_client_secret'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Create a route | |
<? | |
Route::get('backup/create', 'BackupController@create'); | |
Route::get('backup/download/{file_name}', 'BackupController@download'); | |
Route::get('backup/delete/{file_name}', 'BackupController@delete'); | |
?> | |
<?php | |
//Create BackupController controller | |
///declare the following |