create_subscription: Create a subscription for a customer

Description Usage Arguments Details Value See Also

View source: R/subscriptions.R

Description

Create a subscription for a customer

Usage

1
2
3
create_subscription(customerId, plan, coupon = NULL, source = NULL,
  quantity = NULL, metadata = NULL, tax_percent = NULL,
  trial_end = NULL)

Arguments

customerId

The ID of the customer

plan

ID of the plan to subscribe customer to

coupon

A discount on recurring charges

source

A token from get_token

quantity

Default is 1

metadata

A named list

tax_percent

Postive decimal

trial_end

Unix timestamp or 'now'

Details

Not implemented: application_fee_percent

Value

List object

See Also

Other subscriptions: cancel_subscription, get_subscription, list_subscriptions, update_subscription


MarkEdmondson1234/stripeR documentation built on Nov. 6, 2019, 3:21 p.m.