Skip to content

Tips: Create PaymentIntent SetupIntent Subscription object by Stripe CLI

Hidetaka Okamoto edited this page Oct 24, 2021 · 1 revision

If we want to test this plugin, we need to create a new PaymentIntent/SetupIntent/Subscription object. And the task should execute in the server-side application.

But when use Stripe CLI, we can easy to create example data from your local.

Customer

%stripe customers create | jq .id
"cus_XXXXX"

Payment Intent

% stripe payment_intents create \
--customer YOUR_CUSTOMER_ID \
--amount 400 \
--currency usd | jq ".client_secret"
"pi_XXXXX"

Setup Intent

% stripe payment_intents create \
--customer YOUR_CUSTOMER_ID | jq ".client_secret"
"seti_XXXXX"

Subscription