#ChibiDragoon - Subscriptions

1 messages · Page 1 of 1 (latest)

delicate latch
#

Sounds like you want error_if_incomplete.

fiery otter
#

basically I just want to charge the user directly after creating the subscription

#

but right now I have to wait 1 hour every time

delicate latch
#

Yeah, try error_if_incomplete.

fiery otter
#

ok and that would just try a payment directly after creation?

#

i will try right now 🙂

fiery otter
#

when I add the payment_behavior to the subscription it says it is not recognized and give me a 400 error
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameter: payment_behavior",
"param": "payment_behavior",
"type": "invalid_request_error"
}
}

delicate latch
fiery otter
#

oh i just realised i am using the subscription_schedules that could be the reason

#

req_RSPRiYMGPF5bZ4

delicate latch
#

Oh, yeah, Subscription Schedules work differently. To get the behavior you want you should instead create the Subscription directly and then apply a Subscription Schedule to it after it's been successfully created.

fiery otter
#

I see

#

actually just using the subscriptions did the trick when you add error_if_incomplete at creation an error comes that says it's irrelevant but my problem is fixed ty