Class PayPalConfigurationController

Class PayPalConfigurationController

HttpViewController implements HttpViewControllerInterface
AdminHttpViewController implements AdminStatusOnlyInterface
PayPalConfigurationController

Methods summary

public __construct( HttpContextReaderInterface $httpContextReader, HttpResponseProcessorInterface $httpResponseProcessor, ContentViewInterface $contentView )

Initialize the Controller with required properties

protected _getPostData( string $name ) : string|null

adds stripslashes() to parent::_getPostData() to reverse the forced magic quotes introduced by the compatibiliy layer

public actionDefault( void ) : AdminPageHttpControllerResponse

Run the actionDefault method. This is invoked through admin/admin.php?do=PayPalConfiguration

public actionFirstTime( void )

shows first-time configuration assistant

public actionSaveFirstConfiguration( void )

saves first-time configuration

protected _isConfigured( void )

determines whether the interface has been configured, i.e. at least one set of credentials (live/sandbox) has been saved

public actionSaveConfiguration( void )

Save configuration

public actionSaveExperienceProfile( void )

Save a new or altered Web Payment Experience Profile

public actionSelectExperienceProfile( void )

Select Web Payment Experience Profile to use for payments

public actionDeleteExperienceProfile( void )

Delete a Web Payment Experience Profile

public actionRenewWebhook( void )

renew Webhook registration

public actionDeleteWebhook( void )

deletes a Webhook

public actionConnectCheck( void )
protected _prepareValuesArray( $includeExperienceProfiles = false )

Prepare the value array. The array keys are the variable names that are passed to template

protected getExperienceProfilesList( $useCache = true )
protected _checkCredentials( void )

Check REST service credentials by retrieving an access token

Methods inherited from AdminHttpViewController

validateCurrentAdminStatus()

Methods inherited from HttpViewController

_callActionMethod(), _getPostDataCollection(), _getQueryParameter(), _getQueryParametersCollection(), _getServerData(), _render(), _validatePageToken(), getTemplateFile(), proceed()

Constants summary

Properties summary

protected $valueArray : array

Array with Values that are passed to the template

array()
protected $paypalText : PayPalText

Helper for language-specific texts


		
protected $configurationStorage : PayPalConfigurationStorage

		
protected $profilesCacheFile : string

name of web experience profiles cache file


		
protected $logger

		

Properties inherited from HttpViewController

$assets, $contentView, $httpContextReader, $httpResponseProcessor, $postDataArray, $queryParametersArray, $serverDataArray