Magento 2 Worldpay Secure Acceptance Hosted Checkout

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Worldpay Secure Acceptance Hosted Checkout Payment Method in Frontend
  4. Worldpay Secure Acceptance Hosted Checkout Payment Details in Sales Order View Backend

 

  1. Extension Installation
  • 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/magento2-worldpay-secure-acceptance-hosted-checkout --ignore-platform-reqs
    • 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_WorldpayHp --ignore-platform-reqs
          • By default, the extension is probably disabled.
          • Enable the extension and clear static view files:
      • php bin/magento module:enable Meetanshi_WorldpayHp --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
         
  • 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
  1. Configuration
  1. To configure the extension, login to Magento 2, move to Stores à Configuration à Sales à Payment Methods à Worldpay Secure Acceptance Hosted Checkout – Meetanshi, where you can find various settings to enable the extension.
  • Enabled: Enable Worldpay Secure Acceptance Hosted Checkout payment method from here.
  • Title: Enter title for the Worldpay Secure Acceptance Hosted Checkout payment method to show in the frontend.
  • Show Worldpay Logo: Select YES to show Worldpay logo on the checkout page in frontend.
  • Sandbox Mode: Set YES to enable sandbox mode for the payment gateway.
  • Secret Key: Enter the secret key while registration with Worldpay Secure Acceptance Hosted Checkout.
  • Access Key: Enter the access key received while registration with Worldpay Secure Acceptance Hosted Checkout.
  • Profile ID: Enter the profile ID received while registration with Worldpay Secure Acceptance Hosted Checkout.
    • Go to https://worldpay.ubc.cybersource.com/ebc2/, login with your credentials. Move to Payment Configuration > Secure Acceptance Settings. Select the merchant ID from the dropdown, set profile status as inactive and click the “Search” button. (If you haven’t created a profile, create one) Now click on “Promote Profile” button to activate the profile.

    • After activating the profile, click on the view profile and copy the profile ID and paste in the relevant field in Magento 2 extension configuration.

 

    • Now move to “Security” tab and under the Active Keys, click on View Key. (If you have created a new profile, you require to create keys from here) A sidebar with both the access key and secret key will get opened. Copy both the access key and secret key, and paste them into relevant fields. (If the profile is already activated, click on “View Profile”, copy the keys from “Security” tab.)

  • Gateway URL: Enter the gateway URL for Worldpay Secure Acceptance Hosted Checkout.
  • Allow Auto Invoice: Set YES to auto generate invoice for the orders placed through Worldpay Secure Acceptance Hosted Checkout payment method.
  • Payment from Applicable Countries: Select all or selected countries to allow payments using Worldpay Secure Acceptance Hosted Checkout.
  • Payment from Specific Countries: If you have set specific countries from the above option, select the countries to allow payments using Worldpay Secure Acceptance Hosted Checkout.
  • Additional Information: Enter additional information to show on the checkout page in the frontend.
  • Debug: Set YES to enable debug.
  • Sort Order: Enter sort order of the Worldpay Secure Acceptance Hosted Checkout payment method.

 

  1. Worldpay Secure Acceptance Hosted Checkout Payment Method in Frontend
    Once the extension is configured, the Worldpay Secure Acceptance Hosted Checkout payment method can be seen enabled in the frontend. Simply add products to cart and go to the checkout, select the payment method, click “Continue to Payment” button to get redirected to the Worldpay hosted payment page to complete the payment and place order successfully.

  • Redirection to Hosted Payment Page
    On the Worldpay hosted payment page, select the payment method, add card details and click Next to proceed to review the payment.

 

  • Review Payment Details
    Review payment details and click “Pay” to pay for the order.

 

  • Worldpay Secure Acceptance Hosted Checkout Payment Details in Customer’s My Account Section
    Immediately after the order is placed, the Worldpay Secure Acceptance Hosted Checkout payment details can be seen in My Orders > Order View under the customer’s “My Account” section.

 

  1. Worldpay Secure Acceptance Hosted Checkout Payment Details in Sales Order View Backend
    Apart from the customer’s My Account section, the admin can also see Worldpay Secure Acceptance Hosted Checkout payment details from the Sales à Orders à Order View section in the backend.