#ChibiDragoon - Subscriptions
1 messages · Page 1 of 1 (latest)
Hello! You likely need to change the payment_behavior: https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior
Sounds like you want error_if_incomplete.
basically I just want to charge the user directly after creating the subscription
but right now I have to wait 1 hour every time
Yeah, try error_if_incomplete.
ok and that would just try a payment directly after creation?
i will try right now 🙂
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"
}
}
Can you give me the request ID showing that error? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
oh i just realised i am using the subscription_schedules that could be the reason
req_RSPRiYMGPF5bZ4
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.