PHP code example of leonardjke / socialite-yoomoney

1. Go to this page and download the library: Download leonardjke/socialite-yoomoney 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/ */

    

leonardjke / socialite-yoomoney example snippets


'yoomoney' => [    
  'client_id' => env('YOOMONEY_CLIENT_ID'),  
  'client_secret' => env('YOOMONEY_CLIENT_SECRET'),  
  'redirect' => env('YOOMONEY_REDIRECT_URI') 
],

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        'SocialiteProviders\\Yoomoney\\YoomoneyExtendSocialite@handle',
    ],
];

return Socialite::driver('yoomoney')->redirect();