Skip to content

Commit

Permalink
chore: Add redirect env client url in payment controller
Browse files Browse the repository at this point in the history
  • Loading branch information
builtbysuraj committed Mar 2, 2024
1 parent 483160e commit c49d6af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/src/controller/payment/payment.controller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import crypto from 'crypto'
import { ENV } from '../../conf/conf'
import { CLIENT_BASE_URL } from '../../constants'
import connectDB from '../../db/db'
import { Payment } from '../../model/payment.model'

Expand Down Expand Up @@ -29,7 +28,7 @@ export const paymentVerification = async (req, res) => {
})

res.redirect(
`${CLIENT_BASE_URL}/payment-success?reference=${razorpay_payment_id}`
`${ENV.CLIENT_URL}/payment-success?reference=${razorpay_payment_id}`
)
} else {
res.status(400).json({
Expand Down

0 comments on commit c49d6af

Please sign in to comment.