#Bruna Pinto - Subscriptions with Boleto

1 messages · Page 1 of 1 (latest)

pastel brook
#

Hi there! Are you receiving an error when you try to cancel these subscriptions? If so, do you have a request ID for this error? Request IDs look like req_

onyx marsh
#

What I'm trying to do is the following: when a person makes a purchase by "boleto" of a plan that is quarterly, in the code a schedule is made to cancel the plan in 3 months. This works if the person buys using a credit card and the cancellation date is correctly scheduled. But when the person buys by "boleto", this scheduling is not being done, and it should, otherwise, the person would have a plan time beyond the contracted one.

#

this is what happens with "Boleto"

#

this is an example that works, and the person buys with credit card

humble gale
#

Hi there 👋 taking over for @pastel brook

Sorry for the wait. Give me a few minutes to get caught up.

#

What is the URL for the page where you took those screenshots?

onyx marsh
#

these screenshots are from the Firebase database

#

we use firebase extension to use Stripe

humble gale
#

I see. Do you have a request ID for the subscription you created for testing boleto?

Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request

onyx marsh
#

req_jPjxYJm9sxpnwT

humble gale
#

There's a subscription ID in the first screenshot you sent. Can you copy/paste that here?

onyx marsh
#

sub_1LU4FgCqHOHg9sSb90gRFURz

humble gale
#

You mentioned there was code that's responsible for creating the schedule if the payment method type is boleto. Do you have that code somewhere that I can look at?

onyx marsh
humble gale
#

I don't see a delineation between boleto and other payment method types in your code anywhere. Where are you checking to see if the payment method is set to boleto?

onyx marsh
#

I don't, and not even if it's a credit card. I hope the firebase extension does this. Should I? Can you tell me why with a credit card the scheduling works?

humble gale
#

That's a better question for Firebase. We don't have a lot of context on what Firebase does or doesn't do. For example, none of the code in your screenshot actually uses a Stripe library.

#

Hate to give that answer, but they're a separate entity. Here's there support site: https://firebase.google.com/support

Firebase

Get help quickly with Firebase support. Read our FAQs, Release notes, and guides, ask the community, then get direct support from the Firebase team.