create_payment: create a Stripe payment

View source: R/api_stripe_payment_method.R

create_paymentR Documentation

create a Stripe payment

Description

create a Stripe payment

Usage

create_payment(
  customer_id,
  payment_method_id,
  amount,
  currency = "usd",
  receipt_email = NULL,
  description = NULL,
  stripe_secret_key = .pp$keys$secret
)

Arguments

customer_id

the Stripe customer ID

payment_method_id

the Stripe payment method ID

amount

a positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency)

currency

the currency

receipt_email

the email address to receive the receipt

description

payment description to show to user making payment

stripe_secret_key

your Stripe account secret API key


Tychobra/polishedpayments documentation built on May 13, 2022, 7:15 p.m.