Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/HybridAuth/Provider/PaypalOpenID.php
Строк: 84
<?php
/*!
* Hybridauth
* https://hybridauth.github.io | https://github.com/hybridauth/hybridauth
*  (c) 2017 Hybridauth authors | https://hybridauth.github.io/license.html
*/

namespace HybridauthProvider;

use 
HybridauthAdapterOpenID;
use 
HybridauthHttpClient;

/**
 * PayPal OpenID provider adapter.
 */
class PaypalOpenID extends OpenID
{
    
/**
    * {@inheritdoc}
    */
    
protected $openidIdentifier 'https://www.sandbox.paypal.com/webapps/auth/server';

    
/**
    * {@inheritdoc}
    */
    
public function authenticateBegin()
    {
        
$this->openIdClient->identity  $this->openidIdentifier;
        
$this->openIdClient->returnUrl $this->callback;
        
$this->openIdClient->required  = [
            
'namePerson/prefix',
            
'namePerson/first',
            
'namePerson/last',
            
'namePerson/middle',
            
'namePerson/suffix',
            
'namePerson/friendly',
            
'person/guid',
            
'birthDate/birthYear',
            
'birthDate/birthMonth',
            
'birthDate/birthday',
            
'gender',
            
'language/pref',
            
'contact/phone/default',
            
'contact/phone/home',
            
'contact/phone/business',
            
'contact/phone/cell',
            
'contact/phone/fax',
            
'contact/postaladdress/home',
            
'contact/postaladdressadditional/home',
            
'contact/city/home',
            
'contact/state/home',
            
'contact/country/home',
            
'contact/postalcode/home',
            
'contact/postaladdress/business',
            
'contact/postaladdressadditional/business',
            
'contact/city/business',
            
'contact/state/business',
            
'contact/country/business',
            
'contact/postalcode/business',
            
'company/name',
            
'company/title',
        ];

        
HttpClientUtil::redirect($this->openIdClient->authUrl());
    }
}
Онлайн: 3
Реклама