#armanelli_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/1313501893561159763
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Where do you see the expiry date on PDF?
And why are you creating a PaymentMethod first?
Where do you see the expiry date on PDF?
Hi, it appears on the Boleto voucher, I will generate a new one and attach it here one sec
And why are you creating a PaymentMethod first?
We want the users to fill the necessary info inside our app (like billing address etc) Stripe's screen for Boleto always asks for the data again when the user tries to pay the Invoice. Also, it asks for an email field, currently we fill that email field with the admin user email address which we already validate upon sign up
You can provide that by updating the Customer object directly. There's no need to call POST /v1/payment_methods
Are you following this doc?
https://docs.stripe.com/payments/boleto/set-up-subscription?dashboard-or-api=api
Because I don't see you setting days_until_due=3 when you create the Subscription. This should take care of it.
days_until_due wasn't being accepted as i'm using collection_method charge_automatically
Are you following this doc? https://docs.stripe.com/payments/boleto/set-up-subscription?dashboard-or-api=api
At first yes, but I stopped using Checkout Session for Boleto, because even if the customer has all the information filled in the Customer object, when the user clicks on Boleto option at the Checkout Session, it asks for all the information everything again... unless I'm doing something wrong ๐
I see. I am not quite sure that's supported, since Subscriptions don't have payment_method_options[boleto]: https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_settings-payment_method_options
Sorry, I am not familiar with this payment method type, so I am just trying to wrap my head around how this works with Subscriptions...
No problem, I will try once again with Checkout Sessions and will try to combine my already created payment_method that has all the required info for Boleto and there I can pass expire_after_days again.
Will let you know if it works, thanks for now!
I have a feeling that this Use Stripe Checkout section is optional: https://docs.stripe.com/payments/boleto/set-up-subscription?dashboard-or-api=api#use-stripe-checkout
If you just create a Subscription with collection_method=charge_automatically and Boleto enabled on your Stripe account
Before you start your integration, go to Manage payments that require confirmation in your Subscriptions and emails settings and enable Send a Stripe-hosted link for customers to confirm their payments when required.