Skip to content

Conversation

kushsharma
Copy link
Member

Additional configurations are exposed to adjust refresh interval to sync with billing provider(stripe) based on services.

billing:
  # .. omit config

  # refresh interval for billing engine to sync with the billing provider
  # e.g. 60s, 2m, 30m
  refresh_interval:
    customer: 1m
    subscription: 1m
    invoice: 5m
    checkout: 1m

  # .. omit config

Another change as part of checkout api is to cancel any running trials immediately if the user buy same plan.

Additional configurations are exposed to adjust refresh interval
to sync with billing provider(stripe) based on services.
```
billing:
  # .. omit config

  # refresh interval for billing engine to sync with the billing provider
  # e.g. 60s, 2m, 30m
  refresh_interval:
    customer: 1m
    subscription: 1m
    invoice: 5m
    checkout: 1m

```

Another change as part of checkout api is to cancel any running
trials immediately if the user buy same plan.

Signed-off-by: Kush Sharma <thekushsharma@gmail.com>
Copy link

vercel bot commented Jul 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontier ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2024 4:18am

@kushsharma kushsharma marked this pull request as ready for review July 26, 2024 04:20
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10105627974

Details

  • 0 of 23 (0.0%) changed or added relevant lines in 5 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.001%) to 9.47%

Changes Missing Coverage Covered Lines Changed/Added Lines %
billing/subscription/service.go 0 1 0.0%
billing/customer/service.go 0 3 0.0%
billing/invoice/service.go 0 3 0.0%
cmd/serve.go 0 3 0.0%
billing/checkout/service.go 0 13 0.0%
Files with Coverage Reduction New Missed Lines %
billing/checkout/service.go 2 0.0%
Totals Coverage Status
Change from base Build 10091612201: -0.001%
Covered Lines: 10263
Relevant Lines: 108374

💛 - Coveralls

@kushsharma kushsharma merged commit a2bde42 into main Jul 26, 2024
@kushsharma kushsharma deleted the billing-refresh-interval branch July 26, 2024 10:36
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.

2 participants