-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Polar integration #461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Polar integration #461
Changes from 152 commits
Commits
Show all changes
159 commits
Select commit
Hold shift + click to select a range
728bcd0
refactor: create explicit type for processor IDs
Genyus 61f5e73
refactor: move revenue calculation to processors
Genyus d3f3ed6
docs: improve comments
Genyus 51d05ca
fix: update imports after previous refactoring
Genyus f07fa91
refactor: convert processor IDs to enum values
Genyus 2b42cc6
feat: add validation of server env vars
Genyus a0276a3
feat: add initial Polar integration
Genyus 0ebd0a3
feat: implement total revenue calculation
Genyus e84670d
feat: implement customer portal URL retrieval
Genyus 54292a7
feat: implement checkout session creation
Genyus 156823c
feat: implement webhook handling
Genyus 2841121
feat: add dynamic payment processor selection
Genyus 825eb66
fix: implement webhook handling
Genyus 6ad783b
chore: rename file for consistency
Genyus a97b79f
Merge branch 'main' into polar
Genyus eb68932
fix: address typing errors
Genyus fca11f9
fix: resolve type assignment error
Genyus c71f29a
refactor: streamline payment processor integration
Genyus 732b9ed
style: remove redundant JSDoc comments
Genyus 2410e01
refactor: simplify error handling
Genyus f65cc67
refactor: fix customer portal implementation
Genyus df213c9
chore: update webhook response status codes
Genyus 5f71cac
refactor: remove iteration for single customer lookup
Genyus 882df67
refactor: simplify webhook error handling
Genyus 7d0eb4e
refactor: rename polar client
Genyus 3639c0d
refactor: refactor client configuration
Genyus 2f5748c
refactor: remove standalone client config file
Genyus e5a63de
style: remove extraneous JSDoc comments
Genyus fda6a57
refactor: remove standalone type declarations file
Genyus add2038
docs: remove unnecessary README
Genyus 254aae4
refactor: remodel webhook to align with current integrations
Genyus 780d24c
fix: resolves issues found in testing
Genyus 568c38b
chore: mention Polar as an available payment platform
Genyus 721fd6f
chore: remove env validation
Genyus 31ad46c
chore: remove redundant guard
Genyus f5892aa
chore: remove unsupported event type
Genyus 32c8934
fix: update order completion handler
Genyus 2b3195c
fix: throw error when credits can't be parsed from order
Genyus 2a64914
revert: revert deletion of validation.ts
Genyus 9658034
Merge pull request #1 from wasp-lang/main
Genyus 9b3a26e
Merge pull request #2 from wasp-lang/main
Genyus 033bdfe
chore: rename file for consistency
Genyus dbcfa08
style: reorder imports
Genyus e81b2db
fix: correct webhook event support
Genyus 20e95f8
refactor: simplify webhook handlers
Genyus f31f176
style: restore missing line break
Genyus 3003595
chore: add gitignore rules
Genyus 6cce3fe
refactor: restore centralised payment stats
Genyus ce97f73
revert: restore original payment processor files
Genyus 27b8ea7
revert: restore paymentProcessor comments
Genyus 6471324
refactor: improve switch condition checking
Genyus 1b72606
refactor: remove unused code
Genyus b0eaf88
refactor: rename function
Genyus 3defeb9
refactor: simplify user updating
Genyus 2741ea2
refactor: simplify webhook handling
Genyus 543fa92
fix: remove default portal URL
Genyus ee65871
fix: improve type-safety
Genyus 31a3b0b
fix: restore available processors
Genyus 42cbf32
docs: remove JSDoc comment
Genyus adde113
refactor: remove redundant file
Genyus 29ec825
refactor: streamline session management
Genyus ee820b3
refactor: rename method parameters
Genyus 4b1ce80
refactor: refactor webhook handling
Genyus cbf0e62
refactor: refactor user update function
Genyus 064abc1
refactor: refactor Polar client logic
Genyus 5a46b2f
refactor: consolidate type declarations
Genyus ac66c28
Merge pull request #3 from wasp-lang/main
Genyus 745516e
fix: update for Wasp 0.18.0
Genyus 9a09fed
revert: undo client logic refactoring
Genyus 33ab2a3
refactor: implement changes from review feedback
Genyus 37ce885
refactor: relocate function
Genyus a9f51e3
refactor: remove redundant gate
Genyus 17042bf
refactor: simplify webhook handling
Genyus 9ce5cfc
refactor: further simplify webhook handling
Genyus 8c9e8e5
refactor: implement additional webhook improvements
Genyus c110026
refactor: sort imports
Genyus 4b343ff
refactor: refactor checkoutUtils.ts
Genyus d5d97af
docs: add Polar configuration to integration guide
Genyus 99bda63
chore: remove superfluous .gitignore entries
Genyus 22e1c6d
docs: add tip to Polar section
Genyus d8b9732
Merge pull request #4 from wasp-lang/main
Genyus a1671c8
Merge branch 'main' into polar
Genyus c2886ae
refactor: sort imports
Genyus 9287ec3
docs: apply suggestions from code review
Genyus 4c69038
docs: apply additional code review suggestions
Genyus 11a7093
fix: prevent data integrity edge case
Genyus 8c2254a
refactor: clean up webhook handling
Genyus 456ef49
revert: revert .gitignore to original state
Genyus cae2372
docs: add illustrative images to integration guide
Genyus 3593df3
docs: apply code review suggestions
Genyus 18f3479
docs: remove redundant images
Genyus d2f2dd0
refactor: remove obsolete export
Genyus dbd67b3
style: apply Prettier formatting across template
Genyus 6d85122
docs: add Polar references to guides
Genyus 5384775
Merge pull request #5 from wasp-lang/main
Genyus f4b965c
Merge branch 'polar' of github.com:Genyus/open-saas into polar
Genyus 45a9194
style: apply new Prettier formatting across template/src
Genyus fa246d4
Merge branch 'main' into polar
Genyus 5527860
docs: fix typo
Genyus e6c11fe
fix: apply refinements
Genyus 70d3220
refactor: rename and reorder arguments
Genyus 893288d
fix: remove obsolete images
Genyus a4fff20
ci: update diffs
Genyus d183139
Merge remote-tracking branch 'origin/main' into polar
FranjoMindek bbbf9a2
start polishing
FranjoMindek 9287cd9
Merge branch 'main' into polar
FranjoMindek 671dcf0
improve polar, brush off some stuff to stripe
FranjoMindek 8114346
changes to diffs
FranjoMindek 9bd7278
remove polar filess + lemon deps
FranjoMindek 2c0fbd0
Merge branch 'main' into polar
FranjoMindek cf10272
webhook changes
FranjoMindek b8ca44a
simplify + fix query
FranjoMindek 9ea1170
test reset stipe stuff
FranjoMindek b1fcd54
Merge branch 'main' into polar
FranjoMindek 80ffbe1
revert user
FranjoMindek a285d07
diff
FranjoMindek ce7c90a
abstract
FranjoMindek 2cebfbe
Update opensaas-sh/blog/src/content/docs/guides/deploying.mdx
FranjoMindek c7dce03
Update opensaas-sh/blog/src/content/docs/guides/payments-integration.mdx
FranjoMindek 53422eb
Update opensaas-sh/blog/src/content/docs/guides/payments-integration.mdx
FranjoMindek bd73779
Update opensaas-sh/blog/src/content/docs/guides/payments-integration.mdx
FranjoMindek 921ce6b
Update opensaas-sh/blog/src/content/docs/guides/payments-integration.mdx
FranjoMindek f2a312e
Update opensaas-sh/blog/src/content/docs/start/guided-tour.md
FranjoMindek d44fb78
Update opensaas-sh/blog/src/content/docs/guides/payments-integration.mdx
FranjoMindek 47afe8f
Update opensaas-sh/blog/src/content/docs/start/guided-tour.md
FranjoMindek 7c17fe4
update capital letters / indentation / and dots
FranjoMindek 4d63d42
plan id
FranjoMindek e5a5ac1
ensurePolarCustomer jsdocs
FranjoMindek 549d3ea
temp changes save
FranjoMindek 423df84
inline + naming + order
FranjoMindek ab3b106
Merge branch 'main' into polar
FranjoMindek c42acd6
consistency
FranjoMindek ade9221
polish docs
FranjoMindek a084bc5
add tabs remove polar express
FranjoMindek 865a8a9
remove polar express diff
FranjoMindek ddd4e32
wording
FranjoMindek 9e65156
typo
FranjoMindek ae0efc6
Merge branch 'main' into polar
FranjoMindek 4a3d7e9
Update opensaas-sh/blog/src/content/docs/guides/Payment Integrations/…
FranjoMindek 956c86c
Update opensaas-sh/blog/src/content/docs/guides/Payment Integrations/…
FranjoMindek ed20c9f
Update opensaas-sh/blog/src/content/docs/guides/deploying.mdx
FranjoMindek 904e8e5
Update opensaas-sh/blog/src/content/docs/guides/Payment Integrations/…
FranjoMindek fa50424
Update opensaas-sh/blog/src/content/docs/guides/Payment Integrations/…
FranjoMindek caf9825
Update opensaas-sh/blog/src/content/docs/guides/Payment Integrations/…
FranjoMindek b6ada50
manual mode + fixes
FranjoMindek 0be93eb
fixes
FranjoMindek 6c417d9
fix deployment
FranjoMindek cf2b918
live -> prod
FranjoMindek de73cdc
fix links
FranjoMindek 08729cf
deploying reminder
FranjoMindek f1fbfcb
improvements
FranjoMindek cadd982
our -> your
FranjoMindek d52b96b
simplify
FranjoMindek a92229b
simplify
FranjoMindek 8c9882a
improvements
FranjoMindek f838e16
update
FranjoMindek 0baaa9c
update note
FranjoMindek 2548e3f
add commas
FranjoMindek d4479f6
update wasp-app-runner
FranjoMindek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.