Magento 2 PSiGate Hosted Payment extension integrates PSiGate payment gateway HTML API with Magento 2 to accept secure online payments.
Table of Content
- Extension Installation Guide
- Configuration
- PSiGate Hosted Payment Method in Frontend
- PSiGate Hosted Payment Details in Backend
- For Magento Marketplace Customers
- Find the Composer name and version of the extension in the extension’s composer.json file.
- Login to your SSH and run:
- composer require meetanshi/magento-2-psigate-hosted-payment
- Enter your authentication keys. Your public key is your username; your private key is your password.
- Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
- To verify that the extension installed properly, run the command:
- php bin/magento module:status Meetanshi_PsigateHtml
-
- By default, the extension is probably disabled.
- Enable the extension and clear static view files:
-
- php bin/magento module:enable Meetanshi_PsigateHtml --clear-static-content
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- php bin/magento module:status Meetanshi_PsigateHtml
- For Meetanshi Customers
- Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
- Login to your SSH and run below commands step by step:
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- Configuration
To configure the extension, login to Magento 2, move to Sales à Payment Methods à PSiGate Hosted Payment (Real-time HTML API) - Meetanshi where you can find various settings to enable the extension.
- Enabled: Set “YES” to enable PSiGate hosted payment method from here.
- Title: Set title for the payment method.
- Show PSiGate Logo: Set YES to show PSiGate logo on the checkout page in frontend.
- Sandbox: Set “YES” to enable sandbox mode.
- Sandbox Merchant ID: Enter the merchant ID you have got while registration.
- Gateway URL: Enter the gateway URL as https://checkout.psigate.com/HTMLPost/HTMLMessenger for live and https://stagingcheckout.psigate.com/HTMLPost/HTMLMessenger for staging.
- Payment Type: Select one of the payment types:
- DB: Only allows debit card payments.
- CC: Only allows credit card payments.
- Do not pass value: Allows all the payment types enabled in customer’s account.
Note: If you pass a PaymentType value, the collection form will only display the selected payment type even if the other payment type is also enabled. If you pass a PaymentType value that is not enabled, the system will return an error. If you do not pass a PaymentType value, the collection form will display all enabled payment types.
The Masterpass payment option is always available within the collection form when a credit card payment option is displayed.
- Payment Form Language: Select the language of the payment form.
- Allow Auto Invoice: Set YES to automatically generate invoices for the orders placed through PSiGate hosted payment method.
- Payment From Applicable Countries: Select countries to allow using the PSiGate hosted payment method.
- Additional Information: Enter additional information to show on the checkout page along with the payment method.
- Debug: Set Yes to enable debug.
- Sort Order: Enter the sort order of the payment method.
- PSiGate Hosted Payment Method in Frontend
Once the extension configuration is done, you can see PSiGate hosted payment method enabled in the frontend. When a customer adds products to the cart, and proceeds to make payment, he can select PSiGate hosted payment method and click “Continue to Payment” to get redirected to the PSiGate hosted payment page and finish the payment.
- PSiGate Hosted Payment Details in “My Account”
Once the order is placed successfully, customers can check the PSiGate Hosted Payment details in “My Orders” tab under their “My Account” section.
- PSiGate Hosted Payment Details in Backend
Apart from the frontend, the admin can also see PSiGate Hosted Payment method details from the Sales à Orders à Order view section in the backend.