Skip to content

Latest commit

 

History

History
executable file
·
103 lines (95 loc) · 4.63 KB

README.md

File metadata and controls

executable file
·
103 lines (95 loc) · 4.63 KB

1.1 Website Configuration

Afterpay operates under a list of assumptions based on PrestaShop Back Office configurations. To align with these assumptions, the PrestaShop Back Office configurations must reflect the below:

  1. Website Currency must be set to either 'Australian Dollar' or 'New Zealand Dollar'
    1. PrestaShop Back Office > International > Localization
  2. Website Default Country must be set to either 'Australia' or 'New Zealand'
    1. PrestaShop Back Office > International > Localization
  3. 'Zip/Postal Code' must be set to 'Yes'
    1. PrestaShop Back Office > International > Locations > Countries > Edit 'Australia' or 'New Zealand'
  4. 'Address' required fields must include the below values:
    1. Firstname, lastname, email, address1, postcode, city, phone
    2. PrestaShop Back Office > International > Locations > Countries > Edit 'Australia' or 'New Zealand'

1.2 New Afterpay Module Installation

This section outlines the steps to install the Afterpay module on a PrestaShop website for the first time.

  1. Download the Afterpay Module (https://github.com/afterpay/afterpay-prestashop-1.7/raw/master/afterpay.zip).
  2. Navigate to: PrestaShop Back Office > Modules > Modules & Services.
  3. Click Add a new module
  4. Click Select File
  5. Select the Afterpay module ZIP file and the install process will begin.
  6. Upon a successful installation click 'Configure'.
  7. The Afterpay Payment Gateway configuration screen will then be displayed.

1.3 Afterpay Merchant Setup

To configure PrestaShop to utilise the Afterpay Payment Gateway, the below steps must be completed.

Prerequisite for this section is to obtain an Afterpay Merchant ID and Merchant Key from Afterpay.

  1. Upon completion of the installation, you will be redirected to the Afterpay module configuration screen, alternatively:
    • Navigate to: PrestaShop Back Office > Modules > Modules & Services > Installed Modules.
    • Locate the Afterpay Payment Gateway module and click 'Configure'.
  2. Enable the Afterpay module by setting 'Enabled' to 'Yes'.
  3. Enter 'Merchant ID'.
  4. Enter 'Merchant Key'.
  5. Select applicable 'API Environment'.
    • 'Sandbox' API Environment for performing test transactions on a staging website.
    • 'Production' API Environment for live transactions on the production website.
  6. Click 'Save'.
  7. Upon a successful configuration save, the Min and Max Payment Limit values will be updated with a notification stating: Settings Updated.

1.4 Upgrade of Afterpay Module

This section outlines the steps to upgrade the currently installed Afterpay module. The process involves the complete removal of the currently installed module, followed by the installation of the new module.

  1. Navigate to: PrestaShop Back Office > Modules > Modules & Services > Installed Modules.
  2. Locate the Afterpay Payment Gateway module.
  3. Click the dropdown and select 'Uninstall'.
  4. Click 'Yes, uninstall it'.
  5. Download the Afterpay Module (https://github.com/afterpay/afterpay-prestashop-1.7/raw/master/afterpay.zip).
  6. Navigate to: PrestaShop Back Office > Modules > Modules & Services.
  7. Click Add a new module
  8. Click Select File
  9. Select the Afterpay module ZIP file and the install process will begin.
  10. Upon a successful installation click 'Configure'.
  11. The Afterpay Payment Gateway configuration screen will then be displayed.
  12. Enable the Afterpay module by setting 'Enabled' to 'Yes'.
  13. Enter 'Merchant ID'.
  14. Enter 'Merchant Key'.
  15. Select applicable 'API Environment'.
    • 'Sandbox' API Environment for performing test transactions on a staging website.
    • 'Production' API Environment for live transactions on the production website.
  16. Click 'Save'.
  17. Upon a successful configuration save, the Min and Max Payment Limit values will be updated with a notification stating: Settings Updated.