Learn R Programming

RStripe (version 0.1)

stripe_update_customer: Update a Customer.

Description

Update the customer's information or add a new card to a customer.

Usage

stripe_update_customer(api_key, customer_id, args)

Arguments

api_key
Your Stripe API Key
customer_id
The id of the customer you want to update
args
an optional list which can contain:
account_balance
optional In cents starting account balance. Positive means amount to be paid off. Negative is credit used towards charge.

card
optional Either token from Stripe.js or card details.

description
optional The description of the transfer.

default_card
optional The id of a card to use as default.

metadata
optional A list which can contain anything to further describe.

coupon
optional A coupon code for a discount applied on all charges.

email
optional Customer's email address.

Value

A data frame with the updated Customer info if successful.