forked from calcom/cal.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added refund policies for Stripe and PayPal calcom#16858
- Loading branch information
Showing
5 changed files
with
82 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
../../.env | ||
# Example environment variables for Prisma | ||
DATABASE_URL=postgresql://postgres:[email protected]:5432/postgres | ||
DATABASE_DIRECT_URL=postgresql://postgres:[email protected]:5432/postgres | ||
# Add other necessary variables specific to Prisma | ||
|
||
# Example of adding environment variables if needed | ||
# STRIPE_REFUND_POLICY=Standard Refund | ||
# PAYPAL_REFUND_POLICY=Flexible Refund | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const express = require('express'); | ||
const app = express(); | ||
const refundPoliciesRoute = require('./routes/refundPolicies'); | ||
const { refundPolicies } = require('../config/paymentPolicies'); | ||
const { performance } = require('perf_hooks'); | ||
|
||
// ... other middleware and routes ... | ||
|
||
app.use('/api', refundPoliciesRoute); | ||
|
||
// Add a new endpoint to serve refund policies | ||
app.get('/api/refund-policies', (req, res) => { | ||
res.json(refundPolicies); | ||
}); | ||
|
||
// ... server setup ... |
This file contains 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