#geimsdin - php
1 messages · Page 1 of 1 (latest)
Hi Soma,
sure
I'm creating an integration that using API creates a Schedule Subscription, everything seems good but I need the subscription to be charged immediately and not after 1 hour. Your colleague suggested me to finalize the invoice but that doesn't trigger the payment.
She/He suggested that is because my account is not fully active but I'm testing in "test mode" and there should be no limitation there for devs
Thanks for the summary! Can you share the subscription ID where you see this issue?
Did you call the finalize endpoint and also the pay endpoint? https://stripe.com/docs/api/invoices/pay
This is the subscription id: sub_1LcjwzLmxBucQd15eWRiQGda
Your colleague told me that finalize was what was needed to trigger the charge/payment
I think you need both finalize and pay. Can you try it?
Hi there! Taking over for my colleague. Let me catch up.
Yes you need to call the pay method as my colleague just mentioned :
https://stripe.com/docs/api/invoices/pay
Ok, I try and let you know asap