From d97c6e52f0007fbf32423891e54eaf90779d008c Mon Sep 17 00:00:00 2001 From: swikars1 Date: Mon, 8 Apr 2024 14:00:05 +0545 Subject: [PATCH] update readme --- README.md | 62 +++++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index a7514a8..946da60 100644 --- a/README.md +++ b/README.md @@ -20,39 +20,37 @@ const khalti = createKhaltiInstance({ // Initiate a payment const initiateResponse = await khalti.initiatePayment({ - { - return_url: "https://example.com/payment/", - website_url: "https://example.com/", - amount: 1300, - purchase_order_id: "test12", - purchase_order_name: "test", - customer_info: { - name: "Khalti Bahadur", - email: "example@gmail.com", - phone: "9800000123", + return_url: "https://example.com/payment/", + website_url: "https://example.com/", + amount: 1300, + purchase_order_id: "test12", + purchase_order_name: "test", + customer_info: { + name: "Khalti Bahadur", + email: "example@gmail.com", + phone: "9800000123", + }, + amount_breakdown: [ + { + label: "Mark Price", + amount: 1000, }, - amount_breakdown: [ - { - label: "Mark Price", - amount: 1000, - }, - { - label: "VAT", - amount: 300, - }, - ], - product_details: [ - { - identity: "1234567890", - name: "Khalti logo", - total_price: 1300, - quantity: 1, - unit_price: 1300, - }, - ], - merchant_username: "merchant_name", - merchant_extra: "merchant_extra", - } + { + label: "VAT", + amount: 300, + }, + ], + product_details: [ + { + identity: "1234567890", + name: "Khalti logo", + total_price: 1300, + quantity: 1, + unit_price: 1300, + }, + ], + merchant_username: "merchant_name", + merchant_extra: "merchant_extra", }); // Lookup payment status