From 2092e3b98c3cd3f45bbfd1f866b81d6c4b77cf22 Mon Sep 17 00:00:00 2001 From: om-ghimire <83567737+om-ghimire@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:39:21 +0545 Subject: [PATCH] removed depcreated from table of content and fix typo error --- content/checkout/android.md | 4 ++-- content/checkout/web.md | 2 +- mkdocs.yml | 44 ++++++++++++++++++------------------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/content/checkout/android.md b/content/checkout/android.md index 4fc170f..5a220df 100644 --- a/content/checkout/android.md +++ b/content/checkout/android.md @@ -27,7 +27,7 @@ Read the introduction [here](https://docs.khalti.com/). ## Getting Started Integrating Khalti Payment Gateway requires merchant account. -You can always [create one easily from here](https://khalti.com/join/merchant/#/). +You can always . !!! tip A merchant account is required for integration. @@ -134,7 +134,7 @@ Khalti.init( | Callback | Description | | :------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `onPaymentResult(result: PaymentResult, khalti: Khalti)` | Invoked on completion of payment. Inside this callback you'll have access to `PaymentResult` object and `Khalti` object

After completion of payment process, `khalti` will internally trigger the verification API. It's result is then propagated through the `onPaymentResult` callback. You'll receive an object of `PaymentResult`.
| -| `onMessage(payload: OnMessagePayload, khalti: Khalti)` | Invoked on failures, exceptions or to convey message at any point of time. Inside this callback you'll have access to `OnMessagePayload` and `Khalti` object

`OnMessagePalyload` contains `onMessageEvent` that dictates what type of event triggered the callback. It also contains a flag `needsPaymentConfirmation` which if `true` indicates that you must verify the status of the payment. It can be done through the `Khalti` object passed to this callback. Use `khalti.verify()`.

`onMessage` should not be considered as an error by itself. Always consult the `OnMessageEvent` for further clarification. | +| `onMessage(payload: OnMessagePayload, khalti: Khalti)` | Invoked on failures, exceptions or to convey message at any point of time. Inside this callback you'll have access to `OnMessagePayload` and `Khalti` object

`OnMessagePayload` contains `onMessageEvent` that dictates what type of event triggered the callback. It also contains a flag `needsPaymentConfirmation` which if `true` indicates that you must verify the status of the payment. It can be done through the `Khalti` object passed to this callback. Use `khalti.verify()`.

`onMessage` should not be considered as an error by itself. Always consult the `OnMessageEvent` for further clarification. | | `onReturn(khalti: Khalti)` | This is an optional callback that is invoked when `return_url`'s page is successfully loaded. Inside this callback you'll have access to `Khalti` object #### Schema diff --git a/content/checkout/web.md b/content/checkout/web.md index 27b2d6d..7c1ae1f 100644 --- a/content/checkout/web.md +++ b/content/checkout/web.md @@ -225,7 +225,7 @@ The additional data starting with `merchant_` is returned in success response pa Check out the source for [Khalti checkout on Github](https://github.com/khalti/khalti-sdk-web). -Now, for server side integration check [Verification](/api/verification) and [Transaction](/api/transaction) api. +Now, for server side integration check [Verification](../api/verification.md) and [Transaction](../api/transaction.md) api. diff --git a/mkdocs.yml b/mkdocs.yml index 09ef348..2cb368c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -3,7 +3,7 @@ site_name: Khalti Payment Gateway nav: - Introduction: index.md - Getting Started: getting-started.md - - ePayment Gateway (NEW): + - ePayment Gateway : - Web Checkout: khalti-epayment.md - Client Integration: @@ -13,27 +13,27 @@ nav: - WooCommerce: plugins/woocommerce.md - API Reference: - Banking: checkout/diy-banking.md - - Deprecated: - - Andriod: checkout/deprecated_android.md - - iOS SDK: checkout/ios.md - - Flutter/Dart SDK: - - khalti: checkout/flutter/khalti.md - - khalti_flutter: checkout/flutter/khalti-flutter.md - - Web SDK (Widget Version) : checkout/web.md - - API Reference: - - Wallet: checkout/diy-wallet.md - - Server Integration (Deprecated): - - Verification: api/verification.md - - Transaction: - - List: api/transaction.md - - Detail: api/transaction_details.md - - Status: api/transaction_status.md - - Plug and Play: - - Opencart: plugins/opencart.md - - Magento 2: plugins/magneto.md - - Prestashop: plugins/prestashop.md - - WHMCS Khalti Module: plugins/whmcs.md - - Resources: resources.md + # - Deprecated: + # - Andriod: checkout/deprecated_android.md + # - iOS SDK: checkout/ios.md + # - Flutter/Dart SDK: + # - khalti: checkout/flutter/khalti.md + # - khalti_flutter: checkout/flutter/khalti-flutter.md + # - Web SDK (Widget Version) : checkout/web.md + # - API Reference: + # - Wallet: checkout/diy-wallet.md + # - Server Integration (Deprecated): + # - Verification: api/verification.md + # - Transaction: + # - List: api/transaction.md + # - Detail: api/transaction_details.md + # - Status: api/transaction_status.md + # - Plug and Play: + # - Opencart: plugins/opencart.md + # - Magento 2: plugins/magneto.md + # - Prestashop: plugins/prestashop.md + # - WHMCS Khalti Module: plugins/whmcs.md + # - Resources: resources.md - FAQ's and Gotchas: gotchas.md - Contribution: contribution.md