#zerosodium
1 messages · Page 1 of 1 (latest)
Hi there, you can pass the customer ID to the List subscription API (https://stripe.com/docs/api/subscriptions/list?lang=cli#list_subscriptions-customer), if the returned result is not empty, that means this customer has a subscription.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
when the payment is refunded the array still populates?
This API returns subscriptions. For refunds you should use List all refunds API (https://stripe.com/docs/api/refunds/list?lang=cli#list_refunds)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
How can I add "one month free" when creating a checkout session like I can when creating a payment link on the dashboard?