View source: R/api_stripe_payment_method.R
create_payment | R Documentation |
create a Stripe payment
create_payment( customer_id, payment_method_id, amount, currency = "usd", receipt_email = NULL, description = NULL, stripe_secret_key = .pp$keys$secret )
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.