#o.m
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
Hello
are you creating the schedule from an already existing Subscription?
$subscription = SubscriptionSchedule::create([
'customer' => $user->stripe_id,
'start_date' => 'now',
'end_behavior' => 'release',
'phases' => [
[ #1st phase
'items' => [
[
'price' => 'price_1MAurKLsPtHyA4EUcpznZgFL',
'quantity' => 1,
]
],
'iterations' => 3,
],
]
]);
nope.. its a new customer then new subscription. but this is how it looks
why do you need to create a schedule then
we are to bill the customer once every 3rd month from what I recall or i am using the wrong method here?
this seems to me as a normal subscription
I see.. so the normal subscription would suffice my need..
how to bill it every 3rd month only?
whats the diff between subscription and scheduled subscription?
do you want the subscription to start on the 3rd or just having it billed on the 3rd?
have the payment of subscription at the beginning then for every 3rd month next
and also save the card details after subscription payment is okay
in that case you can create a subscription with a https://stripe.com/docs/api/subscriptions/create#create_subscription-billing_cycle_anchor equals to the 3rd of the next month
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay2.. when I set the billing cycle anchor do i need to update the subscription details again (billing cylcle anchor) if I already passed the date of billing cycle anchor?
no the customer will pay a proration for the first period up until the 3rd of the next months and then full price
for the subsequent invoices
Its not the full price right. during the first payment
by default it's going to be prorated
if you want the customer to pay full price even if they're not getting a full month then you can specify proration_behavior: none https://stripe.com/docs/api/subscriptions/create#create_subscription-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
about the billing cycle anchor. not quite sure how this works. but if I set an anchor like 3 months from now april. this will automatically bill every next 3 months ? is this right?
no
this means that the first couple of invoices will be anchored to now and the last one before the billing_cycle_anchor would be prorated
if I'm not mistaken
it's been a while since I tested these scenarios to be honest
question. on the subscription plan, is there a way to save the payment details?
on a successful payment
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.