mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 05:14:23 +00:00
payment cancellation
This commit is contained in:
@@ -5,4 +5,14 @@
|
||||
* https://janishutz.com, development@janishutz.com
|
||||
*
|
||||
*
|
||||
*/
|
||||
*/
|
||||
|
||||
const path = require( 'path' );
|
||||
// const ph = require( './paymentHandler.js' );
|
||||
// const paymentHandler = new ph();
|
||||
|
||||
module.exports = ( app, settings ) => {
|
||||
app.get( '/payments/canceled', ( req, res ) => {
|
||||
res.sendFile( path.join( __dirname + '/../../ui/en/payments/canceled.html' ) );
|
||||
} );
|
||||
};
|
||||
14
src/server/ui/en/payments/canceled.html
Normal file
14
src/server/ui/en/payments/canceled.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Payment Canceled</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Payment Canceled</h1>
|
||||
<p>You have canceled your payment!</p>
|
||||
<p>This was a mistake? Head back to the payment page!</p>
|
||||
<button onclick="history.back()">Back to payment</button>
|
||||
</body>
|
||||
</html>
|
||||
@@ -48,8 +48,6 @@ router.beforeEach( ( to, from ) => {
|
||||
return { name: 'login' };
|
||||
} else if ( isUserAuthenticated && to.name === 'login' ) {
|
||||
return { name: 'account' };
|
||||
} else if ( !isUserAuthenticated && to.name === 'pay' ) {
|
||||
return { name: 'purchase' };
|
||||
} else if ( to.name === '2fa' && !userStore.getUserTwoFACompliant ) {
|
||||
return { name: 'login' };
|
||||
} else if ( to.name === 'Admin2fa' && !userStore.getAdminTwoFACompliant ) {
|
||||
|
||||
Reference in New Issue
Block a user