return URL

This commit is contained in:
CHIEFSOFT\ameye
2024-08-05 12:07:15 -04:00
parent 4c852aa41a
commit 925958fd7f
+3 -1
View File
@@ -81,9 +81,11 @@ app.post('/initialize-transaction-with-plan', async (req, res) => {
amount, amount,
plan, plan,
channels: ['card'], // limiting the checkout to show card, as it's the only channel that subscriptions are currently available through 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) { if (initializeTransactionResponse.status === false) {
return console.log( return console.log(
'Error initializing transaction: ', 'Error initializing transaction: ',