# Magento & Adobe Commerce

## PayKKa Drop In Payment Plugin

PayKKa Drop In connects your Magento store to PayKKa payment services. Customers can enter their card details directly on your store's checkout page or use other payment methods enabled for your merchant account.

Screenshots illustrate where to find each setting. Use your own merchant credentials. Products, amounts, page styles, and available payment methods depend on your store. Merchant details in the screenshots have been replaced with placeholders.

## Preparation

### Installation Requirements

Follow the [Integration Guide](/payments/docs/introduction/integrated-guide) to register your PayKKa account, complete merchant onboarding, and configure transaction keys. Before installing, prepare:

- A Magento administrator account with permission to change payment settings.
- The PayKKa Magento plugin package. Contact your integration representative to obtain it and confirm compatibility with your store version.
- Your **Client Key, Merchant ID, API Key (merchant private key), and APP ID**, and the corresponding sandbox or production environment.
- A product available for purchase to verify checkout and payment.


If you need help obtaining these details, contact your PayKKa integration representative or the person responsible for your store integration. Sandbox and production credentials must match the selected environment.

## Install the Plugin

The plugin must be installed in your Magento website files. Give the package to your store administrator or website service provider to complete the steps below. Store operators can then configure payments in the admin.

**Installation handoff for your store administrator**

1. Confirm compatibility with the store's Magento and PHP versions, back up the website and database, and schedule a suitable installation time.
2. Extract the package and copy its `PayKKa/Payment` folder into `app/code/` under the Magento root directory. Confirm that `app/code/PayKKa/Payment/registration.php` exists.
3. From the Magento root directory, run the following commands as the account used to manage your store:


```bash
php bin/magento module:enable PayKKa_Payment
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
```

1. For stores in production mode, also run `php bin/magento setup:static-content:deploy` for the languages used by the store. Flush the cache again and confirm that the storefront is accessible.
2. Run `php bin/magento module:status PayKKa_Payment`, confirm that it reports `Module is enabled`, and check that **PayKKa Drop in Checkout** is available in the admin.


Your store administrator should handle maintenance mode, file permissions, and deployment according to the store's existing procedures.

## Configure PayKKa Drop In

### Open the Payment Settings

In your Magento admin, go to **Stores -> Configuration**.

Expand **Sales**, select **Payment Methods**, and expand **PayKKa Drop in Checkout**. It may appear under **Other Payment Methods**.

If you manage multiple websites or stores, confirm that **Scope** is set to the store you want to configure. To edit a disabled field, clear **Use system value / Use Default** next to it.

### Enter Merchant Details

Complete the settings below using your own details, not the placeholder text in the screenshots.

| Setting | What to enter |
|  --- | --- |
| **Enabled** | Select **Yes** to enable PayKKa payments. |
| **Title** | The payment method name shown at checkout. You can keep **PayKKa Drop in Checkout**. |
| **Environment** | Select **Sandbox** for initial testing. For live payments, select **Production EU** or **Production HK** according to the region enabled for your merchant account. |
| **Client Key** | Your Client Key for the selected environment. |
| **Merchant ID** | Your PayKKa merchant ID. |
| **API Key** | Your **merchant private key**. This plugin uses this field for the private key; confirm it with your integration contact. Do not enter a Client Key or account password. |
| **APP ID** | The APP ID associated with your merchant integration credentials. |
| **Force Bill Address** | Whether billing address details must be supplied to the payment service. Follow your PayKKa integration requirements. Selecting No does not remove Magento's own checkout address requirements. |
| **Debug Mode** | Used for troubleshooting. Usually select **No** for normal operation; enable it when instructed by support. |
| **Sort Order** | The payment method's display order, for example **10**. |
| **Payment from Applicable Countries** | Choose the applicable countries. If you restrict payments by country, also complete **Payment from Specific Countries**. |


Click **Save Config** in the upper-right corner.

If Magento prompts you to refresh the cache, go to **System -> Cache Management**, select the items marked for refresh, choose **Refresh**, and submit. Your store administrator can help with this step. Reload checkout to check that the settings have taken effect.

## Test and Verify Payments

### Checkout Display

Open your storefront, add an available product to the cart, and proceed to checkout. For physical products, complete the required shipping address and delivery selection first.

On **Review & Payments**:

1. Enter the customer's email address.
2. Under **Payment Method**, select **PayKKa Drop in Checkout**, or the title you configured.
3. Complete the required billing name and address details.
4. Verify the order amount, currency, and product quantity in the order summary.


The product and **$300.00** shown are examples. You do not need to use the same product or amount.

### PayKKa Drop In Payment

After selecting PayKKa, the payment area appears. Select **Bank card** and complete:

- **Email**: The customer's email address.
- **Card number**: The card number.
- **Expiry date**: The card's expiry date.
- **CVC/CVV**: The card security code.
- **Cardholder name**: The name on the card.


Use test card details provided by PayKKa in the **Sandbox** environment. Confirm that the amount on the payment button matches the order total, click **Buy now**, and follow any further verification prompts.

Google Pay, Skrill, and other methods shown in the screenshot are examples. Availability depends on the payment methods enabled for your merchant account, transaction conditions, and the customer's device or browser.

After testing, check:

1. The customer page displays the payment result.
2. An order appears under **Sales -> Orders** in Magento, with the correct amount, currency, and payment method.
3. The corresponding transaction appears in the PayKKa merchant portal, and its payment result agrees with the Magento order.


Payment completion does not mean the order has been shipped. Handle orders according to both the payment result and your fulfillment process. Seeing a payment option at checkout alone does not confirm a successful integration.

## Go Live

After testing, confirm with your PayKKa integration representative that your merchant account is ready to accept live payments. Then:

1. Return to the PayKKa settings and select the production environment for your merchant account.
2. Replace the Client Key, Merchant ID, API Key, and APP ID with the matching production credentials.
3. Review the applicable countries and payment title, save the settings, and refresh the cache.
4. Ask your store administrator to confirm that the store uses an accessible HTTPS address and can receive payment result notifications from PayKKa.
5. Complete the acceptance checks agreed with PayKKa, verifying live transactions and order records before opening payments to customers.


Sandbox credentials cannot be used for live payments. If you manage multiple stores, check the configuration scope and merchant credentials for each one.

## Troubleshooting

| Issue | Recommended action |
|  --- | --- |
| PayKKa is missing from the admin | Ask your store administrator to confirm that the plugin is installed and enabled, refresh the cache, and reopen the admin. |
| A configuration field cannot be edited | Clear Use system value / Use Default and confirm the selected store scope. |
| Customers cannot see PayKKa at checkout | Check that Enabled is Yes, the settings are saved, and the customer's country is allowed. Refresh the cache. |
| The payment area does not load | Reload the page. If the problem persists, share the error or a screenshot with your store administrator and PayKKa support to check the credentials and environment. |
| A credential or signature error appears | Verify that the Merchant ID, APP ID, merchant private key, and selected environment belong together. |
| Payment succeeds but the order is not updated | Give the order number to your store administrator and PayKKa support to check the transaction result and notification delivery. Confirm the result before attempting payment again. |


When contacting support, provide the time of the issue, order number, error message, and screenshots with merchant credentials concealed. Do not expose your merchant private key in screenshots or chat.

## Updates and Maintenance

- Upgrade using a plugin package provided by your integration representative.
- Back up your store and verify upgrades in a non-production environment first.
- Keep Magento, PHP, and the plugin versions compatible; consult your store administrator before upgrading.
- Update the relevant store's payment settings whenever merchant transaction keys change.