stripe_customer | R Documentation |
The stripe_customer
object represents the data that is required to
manage customers at Stripe. This object allows you to perform recurring
charges and track multiple charges that are associated with the same customer.
You can use this object to create, delete, and update customers.
An R6 object class
create
: Create a new customer
update
: Update customer information
retrieve
: Retrieve information on existing customer.
delete
: Delete a customer
new()
stripe_customer$new( ..., metadata = NULL, discount = NULL, shipping = NULL, sources = NULL, subscriptions = NULL )
create()
stripe_customer$create( account_balance = NULL, business_vat_id = NULL, description = NULL, email = NULL, plan = NULL, quantity = NULL, tax_percent = NULL, trial_end = NULL, coupon = NULL, metadata = list(), ship_name = NULL, ship_city = NULL, ship_country = NULL, ship_line1 = NULL, ship_line2 = NULL, ship_state = NULL, ship_zip = NULL, ship_phone = NULL, card_token = NULL, exp_month = NULL, exp_year = NULL, number = NULL, cvc = NULL, name = NULL, address_city = NULL, address_country = NULL, address_line1 = NULL, address_line2 = NULL, address_state = NULL, address_zip = NULL, currency = NULL, default_for_currency = NULL, card_metadata = list(), idempotency_key = NULL )
retrieve()
stripe_customer$retrieve(customer_id)
update()
stripe_customer$update( account_balance = NULL, business_vat_id = NULL, metadata = list(), default_source = NULL, coupon = NULL, description = NULL, email = NULL, ship_name = NULL, ship_city = NULL, ship_country = NULL, ship_line1 = NULL, ship_line2 = NULL, ship_state = NULL, ship_zip = NULL, ship_phone = NULL, token = NULL, exp_month = NULL, exp_year = NULL, number = NULL, cvc = NULL, name = NULL, address_city = NULL, address_country = NULL, address_line1 = NULL, address_line2 = NULL, address_state = NULL, address_zip = NULL, currency = NULL, default_for_currency = NULL, card_metadata = list() )
delete()
stripe_customer$delete(customer_id)
clone()
The objects of this class are cloneable with this method.
stripe_customer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.