Description Usage Arguments Details Value See Also
Charge a credit card
1 2 3 4 |
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 |
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
List object
Other charges: capture_charge
,
get_charge
, list_charges
,
update_charge
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.