PHP code example of payping / oauth2-payping-socialite-client
1. Go to this page and download the library: Download payping/oauth2-payping-socialite-client 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/ */
payping / oauth2-payping-socialite-client example snippets
\SocialiteProviders\Manager\ServiceProvider::class
'providers' => [
// a whole bunch of providers
// remove 'Laravel\Socialite\SocialiteServiceProvider',
\SocialiteProviders\Manager\ServiceProvider::class, // add
];
/**
* The event handler mappings for the application.
*
* @var array
*/
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// add your listeners (aka providers) here
'SocialiteProviders\\PayPing\\PayPingExtendSocialite@handle',
],
];
'payping' => [
'client_id' => env('PAYPING_CLIENT_ID'),
'client_secret' => env('PAYPING_SECRET_ID'),
'redirect' => env('REDIRECT_URL')
],
return Socialite::with('Payping')->redirect();