charge_card: Charge a credit card

Description Usage Arguments Details Value See Also

View source: R/charge.R

Description

Charge a credit card

Usage

1
2
3
4
charge_card(amount, currency, idempotency, customer = NULL,
  source = NULL, receipt_email = NULL, application_fee = NULL,
  capture = TRUE, description = NULL, metadata = NULL,
  shipping = NULL, statement_descriptor = NULL)

Arguments

amount

Amount in smallest currency unit

currency

ISO code for currency

idempotency

A random string to ensure no repeat charges

customer

ID of existing customer. This or source required.

source

A payment source to be charged

receipt_email

email address to send receipt to

application_fee

Optional charge fee.

capture

TRUE to charge now, FALSE charge with capture_charge

description

Default NULL

metadata

A named list

shipping

Shipping info for the charge

statement_descriptor

22 chars displayed on customer statement

Details

source and customer: If you pass a customer ID, the source must be the ID of a source belonging to the customer.

If you do not pass a customer ID, the source you provide must be a token from create_card_token

Value

List object

See Also

Other charges: capture_charge, get_charge, list_charges, update_charge


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