Repository navigation
feat(payment): permite pular o trial no createStripeSubscription - #1099
Merged
Merged
Conversation
This update introduces a new optional argument, skip_trial, to the StripeSubscribeMutation. When set to true, it bypasses the trial period for subscriptions, allowing for immediate access to the service. The mutation logic has been adjusted accordingly to handle this new parameter.
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue da feature
Summary
skipTrial(defaultfalse) emcreateStripeSubscription.skipTrial: true, a mutation não cria o SetupIntent de 7 dias: abre uma assinatura paga na hora (trial_end: now) e aplica o cupom, se houver.Serve o checkout de campanha do website (
?checkout=…&coupon=…), que precisa cobrar o 1º mês/ano com desconto em vez de empilhar trial + cupom.Test plan
skipTrialomitido oufalse: chatbot elegível ainda cai no trial (SetupIntent / 7 dias).skipTrial: true+ cupom válido: Stripe cria assinatura ativa, sem trial, cupom na 1ª fatura,clientSecretde PaymentIntent (nãoseti_).skipTrial: truesem cupom: assinatura paga sem trial, preço cheio.skipTriale não muda de comportamento.