Skip to content

Commit

Permalink
removed depcreated from table of content and fix typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
om-ghimire committed Jul 9, 2024
1 parent 98446c6 commit 2092e3b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions content/checkout/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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<br><br>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`.<br> |
| `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<br><br>`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()`.<br><br>`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<br><br>`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()`.<br><br>`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
Expand Down
2 changes: 1 addition & 1 deletion content/checkout/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.



Expand Down
44 changes: 22 additions & 22 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand Down

0 comments on commit 2092e3b

Please sign in to comment.