Skip to main content
Version: Streamsheets 3.0

STRIPE.CHARGE.CREATE

Premium

Charges a credit card or other payment source. For a list of supported currencies please refer to currencies.

Syntax

=STRIPE.CHARGE.CREATE(Amount, Currency, [CustomerID], [Options], [ResponseTarget])

Arguments

NameTypeDescription
AmountNumberAmount to be charged. A positive integer in the smallest currency unit.
CurrencyStringThree-letter ISO currency code, in lowercase.
CustomerID (optional)StringCreate charge only for customer specified by given ID.
Options (optional)JSONJSON which defines additional options as key value pairs. See Stripe API for supported options and their values.
ResponseTarget (optional)TargetSpecify inbox, outbox, cell or cell-range to write any response to

Return

TypeDescription
Boolean,Result,ErrorRequest result if no target is specified otherwise TRUE. In case of an error the corresponding error-code is returned.

Examples

AB
1description"Test charge"
FormulaResultComment
=STRIPE.CHARGE.CREATE(2000,"usd")
JSONCreates a new charge for currency "usd" and with amount of 2000.
=STRIPE.CHARGE.CREATE(2000,"usd",JSON(A1:B1))
JSONSame as before but with an additional description specified by given JSON object.