Create Charges

Stripe offers services that allow individuals and businesses to accept payments over the Internet. In order to charge a credit card, you first need to create a charge object. This activity allows you to do that. To create charges, first add this activity to your canvas, and configure it. Select the appropriate connection for Stripe. If you haven’t created a connection, select ‘Add new’ to create one. 

Select the code for the currency that you want to set for transactions (e.g., USD, EUR). In ‘Charges Amount’, enter a positive integer in the smallest currency unit (e.g 100 cents to charge $1.00, or 1 to charge ¥1, a 0-decimal currency) representing how much to charge the card. The minimum amount is $0.50 (or equivalent in charge currency). 

In the ‘Customer ID’ field, you need to select/specify the ID of the customer who you wish to charge. Clicking the ‘Refresh’ icon will fetch the list of all the customers of your Stripe account—based on the connection selected—and display it in the drop-down list. ‘ID’. In case there are too many customers, you can search the required one by his ‘name’ or ‘ID’. Alternatively, you can manually enter the name or ID of the customer that you wish to charge or use the output of the previous activity as an input for this field.

In the 'Description' field, you can also enter a short description about the charge. This description will be displayed alongside the charge in the web interface, or in the receipt emails. 

Once you have entered these details, click on ‘Done’ and run the flow. This will create new charges. 

create-charges

Output:
  • output-arrow stripe-new-128 Create Charges
    • left-triangle id string
    • left-triangle object string
    • left-triangle created integer
    • left-triangle livemode boolean
    • left-triangle paid boolean
    • left-triangle status string
    • left-triangle amount integer
    • left-triangle currency string
    • left-triangle refunded boolean
    • left-triangle source object
      • left-triangle id string
      • left-triangle object string
      • left-triangle last4 string
      • left-triangle brand string
      • left-triangle funding string
      • left-triangle exp_month integer
      • left-triangle exp_year integer
      • left-triangle fingerprint string
      • left-triangle country string
      • left-triangle name any
      • left-triangle address_line1 any
      • left-triangle address_line2 any
      • left-triangle address_city any
      • left-triangle address_state any
      • left-triangle address_zip any
      • left-triangle address_country any
      • left-triangle cvc_check any
      • left-triangle address_line1_check any
      • left-triangle address_zip_check any
      • left-triangle tokenization_method any
      • left-triangle dynamic_last4 any
      • left-triangle metadata object
      • left-triangle customer string
    • left-triangle captured boolean
    • left-triangle balance_transaction string
    • left-triangle failure_message any
    • left-triangle failure_code any
    • left-triangle amount_refunded integer
    • left-triangle customer string
    • left-triangle invoice any
    • left-triangle description string
    • left-triangle dispute any
    • left-triangle metadata object
    • left-triangle statement_descriptor any
    • left-triangle fraud_details object
    • left-triangle receipt_email any
    • left-triangle receipt_number any
    • left-triangle shipping any
    • left-triangle destination any
    • left-triangle application_fee any
    • left-triangle refunds object