Skip to content

feat(payments): Reduce delay in activating paid subscription failed payment after free trial ended - #21070

Open
xlisachan wants to merge 1 commit into
mainfrom
PAY-3793
Open

feat(payments): Reduce delay in activating paid subscription failed payment after free trial ended#21070
xlisachan wants to merge 1 commit into
mainfrom
PAY-3793

Conversation

@xlisachan

Copy link
Copy Markdown
Contributor

Because

  • After updating payment method, the customer whose payment failed at free trial end currently waits up to 24 hours (or more) for Stripe's automatic retry before access is restored

This pull request

  • Adds invoicesList and invoicesPayChargeAttempt
  • Existing invoicesPay marks an invoice paid out of band and cannot charge a card
  • Adds retryPaymentForOpeninvoices to invoiceManager to pay open invoice with newly saved payment method

Issue that this pull request solves

Closes: PAY-3793

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.

How to review (Optional)

  • Create subscription for free trial using a test card that declines after attaching (4000000000000341)
  • Simulate time in Stripe dashboard passed free trial end date
  • Go Subscription Management page to observe information about updating payment method to restore access
  • Click "Update Payment Method" button and update payment method:
    • Using a test card for successful payment (4242424242424242), or
    • Using a 3D Secure authentication test card (4000002500003155)
  • Subscription Management should now display the free trial subscription under Active Subscriptions

…ayment after free trial ended

Because
- After updating payment method, customer whose payment failed at free trial end waits up to 24 hours (or more) for Stripe's automatic retry before access is restored

This pull request
- Adds invoicesList and invoicesPayChargeAttempt
- Existing invoicesPay marks an invoice paid out of band and cannot charge a card
- Adds retryPaymentForOpeninvoices to invoiceManager to pay open invoice with newly saved payment method

Closes PAY-3793
@xlisachan
xlisachan marked this pull request as ready for review August 19, 2026 18:16
@xlisachan
xlisachan requested a review from a team as a code owner August 19, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant