#neto-dev_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1404447117958844416
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- neto-dev_webhooks, 5 days ago, 56 messages
๐
Sorry, I'm not sure I udnerstand the issue here? what is the difference between test and live mode exactly ?
From my api side there's no difference at all, I want to understand why in dev it creates correctly in the right method and in prod it doesn't
This subscription, sub_1RlAK6H7b7tFkA7YtY7er4fA failed a payment https://dashboard.stripe.com/events/evt_1RsOsMH7b7tFkA7YELEEKdUM initially but the customer attempted to pay for it via the Hosted inovice page, https://dashboard.stripe.com/logs/req_EkSCm3RwboP6M9 at a later date. However, this subscription, sub_1RuuyaQn8w7ktsfB84M1vC1k was paid successdully initially.
But what does this have to do with this subscription being boleto and the invoice that was created 7 days before coming as card
Can you clarify here? That invoice, in_1RuuyaQn8w7ktsfBwAdNEeSy from that subscription was paid on the day that the subscription was created.
I think you didn't understand the central problem, my system creates an invoice 7 days before the subscription, this invoice is created in the same payment method as the subscription, as you can see in sub_1RuuyaQn8w7ktsfB84M1vC1k (which is in test mode), so if the subscription is boleto, 7 days before an invoice will be created in boleto, if it's card in card. However in production when I have a subscription in boleto, the invoice that is created 7 days before is coming as card like in sub_1RlAK6H7b7tFkA7YtY7er4fA
What invoice IDs are you looking at?
this one in dev mode created boleto correctly pi_3Ruv7mQn8w7ktsfB0ovbHEph this one was supposed to be boleto and was created as card pi_3Rtrm2H7b7tFkA7Y0UIiYWsn
The reason being, when you finalized the invoice, https://dashboard.stripe.com/test/logs/req_pjJ6D9KNokzvBH you passed a boleto payment method type: pm_1Ruuz6Qn8w7ktsfBVlEiNzfR
When you finalized this invoice, https://dashboard.stripe.com/logs/req_l1Gb7PZTimX9Xh you did not. You can change the settings here, https://dashboard.stripe.com/settings/payment_methods to add boleto for instance under the Billing Payments Settings.
But that customer's default payment method is boleto. cus_SgXOI1X7O2ovPv
Ah, the reason is you create the invoice: https://dashboard.stripe.com/logs/req_vnmpQFIF17KqzC manually and passed the card payment method explicity here. Since the customer did not have a default card payment method, it did not use that payment method type of boleto.