PHP Class RCP_Payment_Gateway_Stripe, restrict-content-pro

Since: 2.1
Inheritance: extends RCP_Payment_Gateway
Mostra file Open project: restrictcontentpro/restrict-content-pro Class Usage Examples

Protected Properties

Property Type Description
$publishable_key
$secret_key

Public Methods

Method Description
fields ( ) : string Add credit card fields
init ( ) Get things going
process_signup ( ) Process registration
process_webhooks ( )
scripts ( ) Load Stripe JS
validate_fields ( ) Validate additional fields during registration submission

Protected Methods

Method Description
handle_processing_error ( $e ) Handle Stripe processing error

Private Methods

Method Description
create_plan ( $plan_name = '' ) : boolean | string Create plan in Stripe
plan_exists ( $plan ) : boolean | string Determine if a plan exists

Method Details

fields() public method

Add credit card fields
Since: 2.1
public fields ( ) : string
return string

handle_processing_error() protected method

Handle Stripe processing error
Since: 2.5
protected handle_processing_error ( $e )
$e

init() public method

Get things going
Since: 2.1
public init ( )

process_signup() public method

Process registration
Since: 2.1
public process_signup ( )

process_webhooks() public method

public process_webhooks ( )

scripts() public method

Load Stripe JS
Since: 2.1
public scripts ( )

validate_fields() public method

Validate additional fields during registration submission
Since: 2.1
public validate_fields ( )

Property Details

$publishable_key protected_oe property

protected $publishable_key

$secret_key protected_oe property

protected $secret_key