rcp_stripe_create_subscription_args

Modifies the arguments used for creating a new subscription in Stripe.

Parameters:

  • $args (array) - Default arguments. Includes:
    • plan (string) - ID of the Stripe plan.
    • prorate (bool) - Whether to credit for unused time. False recommended, as Restrict Content Pro handles proration internally.
    • metadata (array)
      • rcp_subscription_level_id (int) - ID of the subscription level the user is signing up for.
      • rcp_member_id (int) - ID of the user.
    • coupon (string) - Only supplied if a discount code is being used.
    • trial_end (int) - Timestamp indicating the end of the trial period. Only supplied if the user is signing up for a free trial.
  • $stripe_gateway (RCP_Payment_Gateway_Stripe) - Instance of the RCP_Payment_Gateway_Stripe object.