Skip to content

Commit

Permalink
Merge pull request #65 from om-ghimire/master
Browse files Browse the repository at this point in the history
updated the Nav bar and khalti-epayment.md
  • Loading branch information
aashishbaidya committed Apr 4, 2024
2 parents 145a74c + 205b6d8 commit 120e5af
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 128 deletions.
2 changes: 1 addition & 1 deletion content/checkout/flutter/khalti-checkout.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ The static `init()` method takes in a few arguments:

- **onReturn**: A callback function that gets triggered when the retunr_url is successfully loaded.

- **onMessage**: A callback function that is triggered if any error is encountered. This callback provides error informations such as error description and status code. It also provides information about why the error occured via `KhaltiEvent` enum. This enum consists of:
- **onMessage**: A callback function that is triggered to convey any message. It gets triggered when any issue is encountered or when any general message is to be conveyed. In case of error, this callback provides error informations such as error description and status code. It also provides information about why the error occured via `KhaltiEvent` enum. This enum consists of:

```dart
enum KhaltiEvent {
Expand Down
105 changes: 0 additions & 105 deletions content/getting-started.md

This file was deleted.

11 changes: 10 additions & 1 deletion content/khalti-epayment.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,18 @@ Every payment request should be first initiated from the merchant as a server si
"quantity": 1,
"unit_price": 1300
}
]
],
"merchant_username": "merchant_name",
"merchant_extra": "merchant_extra"
}
```
**Additionally** Configuration also accepts attribute starting with `merchant_` that can be used to pass additional (meta) data.

- `merchant_name`: This is merchant name

- `merchant_extra`: This is extra data

The additional data starting with `merchant_` is returned in success response payload.

Examples
=== "cURL"
Expand Down
45 changes: 24 additions & 21 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,36 @@ site_name: Khalti Payment Gateway
nav:
- Introduction: index.md
- Getting Started: getting-started.md
- ePayment Gateway (NEW): khalti-epayment.md
- Client Integration:
- Android SDK: checkout/android.md
- ePayment Gateway (NEW):
- Web Checkout: khalti-epayment.md
- Client Integration:

- Android SDK: checkout/android.md
- Flutter SDK: checkout/flutter/khalti-checkout.md
- Plug and Play:
- WooCommerce: plugins/woocommerce.md
- API Reference:
- Banking: checkout/diy-banking.md
- Deprecated:
- Andriod: checkout/deprecated_android.md
- iOS SDK: checkout/ios.md
- Flutter SDK: checkout/flutter/khalti-checkout.md

- API Reference:
- Wallet: checkout/diy-wallet.md
- Banking: checkout/diy-banking.md
- Deprecated:
- Andriod: checkout/deprecated_android.md
- Flutter/Dart SDK:
- Flutter/Dart SDK:
- khalti: checkout/flutter/khalti.md
- khalti_flutter: checkout/flutter/khalti-flutter.md
- Web SDK (Widget Version) : checkout/web.md
- Server Integration:
- Verification: api/verification.md
- Transaction:
- 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:
- WooCommerce: plugins/woocommerce.md
- Opencart: plugins/opencart.md
- Magento 2: plugins/magneto.md
- Prestashop: plugins/prestashop.md
- WHMCS Khalti Module: plugins/whmcs.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 120e5af

Please sign in to comment.