public/wordpress/wp-content/plugins/wp-courseware/includes/gateways/stripe/stripe-api.php
/**
	 * Internal Stripe Api: Create a Subscription.
	 *
	 * @since 4.6.0
	 *
	 * @param string $id The subscription id.
	 * @param array  $args The subscription arguments.
	 *
	 * @return Subscription|object The Stripe Subscription object or error object on failure.
	 */
Internal Stripe Api: Create a Subscription.

@param string $id The subscription id.
@param array  $args The subscription arguments.

@return Subscription|object The Stripe Subscription object or error object on failure.
Internal Stripe Api : Create a Subscription . @param string $id The subscription id . @param array $args The subscription arguments . @return Subscription|object The Stripe Subscription object or error object on failure .
protected function api_update_subscription( $id = '', $args = array() ) {
		if ( empty( $id ) ) {
			throw new Stripe_Exception( 'stripe-api-update-subscription-id-empty', esc_html__( 'The id to update the stripe subscription is empty. Please try again.', 'wp-courseware' ) );
		}
		return Subscription::update( $id, $args );
	}
protected function api_update_subscription ( $ id = '' , $ args = array ( ) ) { if ( empty ( $ id ) ) { throw new Stripe_Exception ( 'stripe-api-update-subscription-id-empty' , esc_html__ ( 'The id to update the stripe subscription is empty. Please try again.' , 'wp-courseware' ) ) ; } return Subscription :: update ( $ id , $ args ) ; }
Internal Stripe Api: Create a Subscription.
Internal Stripe Api : Create a Subscription .