From 925958fd7f35430b0c9c4b23574889f813952240 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 5 Aug 2024 12:07:15 -0400 Subject: [PATCH] return URL --- server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 7cba4b4..3e450e0 100644 --- a/server.js +++ b/server.js @@ -81,9 +81,11 @@ app.post('/initialize-transaction-with-plan', async (req, res) => { amount, plan, channels: ['card'], // limiting the checkout to show card, as it's the only channel that subscriptions are currently available through - callback_url: `${process.env.SERVER_URL}/account.html`, + callback_url: `${process.env.SERVER_URL}/payment`, }); + //callback_url: `${process.env.SERVER_URL}/account.html`, + if (initializeTransactionResponse.status === false) { return console.log( 'Error initializing transaction: ',