#ahmedmohamed24-subscriptins
1 messages · Page 1 of 1 (latest)
No, i was using stripe subscriptions, and you advised me to use scheduled subscriptions
yep, since that is how you can implement installments.
@tawdry trench I managed to handle it
but I want to process the first installment immediatly
sounds good, what have you tried?
it's completely possible to implement things that way, you can create a subscription and start it as normal(to charge the first installment, and then migrate the subscription to a schedule after creation, as covered in the docs. You can also use a Schedule to create a Subscription immediately, that works too
this example of my request
"customer": "cus_ME1KvtGg3coCRn",
"start_date": "now",
"end_behavior": "cancel",
"default_settings": {
"application_fee_percent": 1,
"default_payment_method": "card_1LVZO0FGAxI4c6sWSevbx11A",
"transfer_data": {
"destination": "acct_1LS0e52UGjmIOYYZ"
},
"billing_cycle_anchor": "automatic"
},
"phases": [
{
"items": [
{
"price_data": {
"unit_amount": 53200,
"currency": "cad",
"recurring": {
"interval": "month"
},
"product": "prod_ME1glIEqHEzZsG"
}
}
],
"iterations": 2
}
]```
You can also use a Schedule to create a Subscription immediately, that works too
I want to accomplish this
any advice?
you can create a schedule where the start_date of the first phase is 'now', which starts a subscription immediately.
I've sent start_date:now and this didn't make it start
what's the ID of the subscription schedule you created?
sub_sched_xxx I think is the format.
sub_sched_1LVZiiFGAxI4c6sWayh2xMdl
that did create a subscription, sub_1LVZiiFGAxI4c6sWqi1TScLS .
I noticed that from the dashboard, but i don't know what does this mean
not sure I understand you, what can I clarify?
do note that when creating a subscription this way, the first payment takes an hour to happen as we leave the first invoice open for an hour in a draft. You can force it to be paid immediately though if desired.
why hadn't the subscription schedule started immediately?
it has.