Payment gateaway

# fix
- Alur setelah pembayaran
### Issue:
- Payment notif akan di perbaharui
This commit is contained in:
2023-12-14 10:19:40 +08:00
parent 693bb65710
commit 8ee62b875d
15 changed files with 549 additions and 367 deletions

View File

@@ -3,14 +3,6 @@
import prisma from "@/app/lib/prisma";
import MidTrans from "midtrans-client";
// const midtransClient = require("midtrans-client");
// const snap = new midtransClient.Snap({
// isProduction: false,
// serverKey: process.env.Server_KEY,
// clientKey: process.env.Client_KEY,
// });
const snap = new MidTrans.Snap({
isProduction: false,
serverKey: process.env.Server_KEY,
@@ -58,14 +50,14 @@ export default async function getTokenTransaksi(data) {
free_text: {
inquiry: [
{
en: "text in English",
id: "text in Bahasa Indonesia",
en: "Pay according to the invoice",
id: "Bayar sesuai faktur",
},
],
payment: [
{
en: "text in English",
id: "text in Bahasa Indonesia",
en: "Pay according to the invoice",
id: "Bayar sesuai faktur",
},
],
},