See the reference documentation for Custom Actions for guidance on how to use this connector.

This sample connects a response from the one-time-payment Smart Clause® to the Clause Stripe Create Charge connector.

This sample uses a Stripe Secret key. Get yours from
Find your Stripe accountId at the bottom of your Stripe profile page,
  "$class": "io.clause.outbound.physical.payments.stripe.StripeCreateCharge",
  "accessToken": "sk_test_XXXXXXXXXXXXXXXXXXXXXXX",
  "source": "tok_visa",
  "amount": event.amount

Note that tok_visa is a Stripe test credit card

In this sample, event.amount references a MonetaryAmount object, you can reference the value and currency with event.amount.doubleValue and event.amount.currencyCode respectively.