410 likes | 416 Views
Magento 2 Westpac PayWay Payment Gateway extension by Meetanshi facilitates integration of PayWay Payment gateway to your Magento 2 store to capture secure online payments. <br>PayWay is one of the leading Australian payment gateway that offers fast, secure and convenient payment solutions to numerous businesses. Security should be the prime concern for the success of any online business. <br>
E N D
Westpac PayWay Payment Gateway for Magento2 User Guide Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
Table ofContent Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
ExtensionInstallation • For Magento MarketplaceCustomers • Find the Composer name and version of the extension in the extension’s composer.jsonfile. • Login to your SSH and run: • composer require meetanshi/magento-2-westpac-payway-payment-gateway -- ignore-platform-reqs • Enter yourauthentication keys. Your public key is your username; your private key is yourpassword. • Wait for Composer to finish updating your project dependencies and make surethere • aren’t anyerrors. • To verify that the extension installed properly, run thecommand: • php bin/magento module:status Meetanshi_Payway--ignore-platform-reqs • By default, the extension is probablydisabled. • Enable the extension and clear static viewfiles: • php bin/magento module:enable Meetanshi_Payway--clear-static-content • php bin/magento setup:upgrade • For Magento version 2.0.x to 2.1.x - php bin/magentosetup:static-content:deploy • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy–f • php bin/magento cache:flush • For MeetanshiCustomers • 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 bystep: • php bin/magento setup:upgrade • For Magento version 2.0.x to 2.1.x - php bin/magentosetup:static-content:deploy • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy–f • php bin/magento cache:flush Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
Configuration – PayWay Hosted • To configure the extension, login to Magento 2, move to Stores →Configuration →Sales→PaymentMethods→PayWayPayment– Meetanshi →PayWayHosted Payment – Meetanshi where you can find various settings to enable theextension. • Enabled: Enable PayWay hosted payment method fromhere. • Title: Enter title for the PayWay hosted payment method to show in the frontend. • Show PayWay Logo: Select YES to show PayWay logo on the checkout page infrontend. • Sandbox Mode: Set YES to enable sandbox mode for the paymentgateway. • Biller Code: Enter the biller code received while registration withPayWay. • Username: Enter the username received while registration withPayWay. • Password: Enter the password received while registration withPayWay. • Encryption Key: Enter the encryption key received while registration withPayWay. • o Login tohttps://www.payway.com.au/with your credentials. Click on the Gear icon in the top right to move to the settings. Under “PayWay Modules”, click on “PayWayNet”. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o Now, click “Setup Hosted PaymentPage”. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o A new page with “Hosted Payment Page Setup” will now be displayed. Select page type, here, “Bill Payments/Shopping Cart - secure shopping cart handoff” option and clicknext. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o On biller code page, you will find your biller code, copy the same and paste it in the relevant field in Magento 2 extension configuration. Set up the page by uploading custom style sheet (if any), company logo and background. Click“Next”. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o Enter the “Browser Return URL Pre Payment” and “Browser Return URL” as https://yoursite.com/payway/payment/successand click“Next”. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o Copy encryption key, user name, password and paste the same in the respective Magento 2 Extension configuration fields. Click “Next”. Note: Don’t forget to add IP addresses from which you will be placing test orders using thesandbox mode. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o You can configure various customer reference number and digit algorithm related settings from here. Click“Next”. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o Setup minimum and maximum limits for payments. Also, you can enable PayPal payment method to allow users pay through PayPal on the hosted payment page. Click “Next”. o Enter surcharge amount in percentage to charge customers for using a particular card type. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
Allow Auto Invoice: Set YES to auto generate invoice for the orders placed through PayWay paymentmethod. • Order Status: Set status for the new orders placed through PayWay paymentmethod. • Payment from Applicable Countries: Select all or selected countries to allow payments usingPayWay. • Payment from Selected Countries: If you have set selected countries from the above option, select the countries to allow payments using PayWay. • Additional Information: Enter additional information to show on the checkout page in the frontend. • Debug: Select YES to enabledebug. • Sort Order: Enter sort order of the PayWay paymentmethod. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
3. Specta Payment Method inFrontend Once the extension is configured, the Specta payment method can be seen enabled in the frontend. Simply add products to cart and go to the checkout, select the payment method, click “Place Order” button to get redirected to the Specta hosted payment page to completethe payment and place ordersuccessfully. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
3. PayWay Hosted Payment Method inFrontend Once the extension is configured, the PayWay hosted 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 PayWay hosted payment page to complete the payment and place ordersuccessfully. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o On PayWay hosted payment page, add card details. Here, you can see order and merchant details. ClickNext. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o Pass the security check and click “Confirm Payment” after confirming the orderand paymentdetails. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
PayWay Hosted Payment Details in Customer’s My AccountSection • Immediately after the order is placed, the PayWay hosted payment details can be seen in My Orders > Order View under the customer’s “My Account”section. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
4. PayWay Hosted Payment Details in Sales Order ViewBackend Apart from the customer’s My Account section, the admin can also see PayWay hosted payment detailsfromtheSales→Orders→Order View sectioninthe backend. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
Configuration – PayWay DirectMethod • LogintoMagento2,movetoStores→Configuration→Sales→Payment Methods →PayWayPayment– Meetanshi →PayWayDirect Payment - Meetanshi, where you can find various settings to configure the directmethod. • Enabled: Enable Westpac PayWay direct method fromhere. • Vault Enabled: Set YES to enable vault to allow customers save cards for future transactions. • BasicSettings: • Title: Enter title for the PayWay direct payment method to show in thefrontend. • Show PayWay Logo: Select YES to show PayWay logo on the checkout page infrontend. • Payment Action: Select one of the payment actions for the paymentcapture. • Authorize: Authorizes and validates card for the order amount. The admin has to manually capture the amount (by generating invoice using “Capture Online” option) within theauthorization hold periodwhich is ranging from 1 day to 30 days (based on business and card types) for Westpac PayWayPayment. • Authorize and Capture: Authorizes and captures the order amountimmediately. • Sandbox Mode: Set YES to enable sandbox mode for the paymentgateway. • Merchant ID: Enter the merchant ID provided by Westpac PayWay payment while registration. • Publishable API Key: Enter the publishable key provided by Westpac PayWay payment whileregistration. • Secret API Key: Enter the secret API key provided by Westpac PayWay payment while registration. • Login tohttps://www.payway.com.au/with your credentials. Click on the Gear icon in the top right to move to the settings. Under the “Banking” section, click“Merchants”. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o Copy the Merchant ID and paste it into the relevant field in Magento 2 extension configuration. Click “Back”button. o Now, click on “REST API Keys” under “Access to PayWay” section. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o Click “Add” button to add new rest API keys. If already created, copy publishable and secret keys from here and paste them in the relevant Magento 2 extension configuration fields. • Advanced Settings: • Vault Title: Enter the vault title to show in the email tocustomers. • New Order Status: Set status for the new orders placed through PayWay directmethod. • Debug: Select YES to enabledebug. • Instructions: Enter instructions to show on the checkout page in thefrontend. • Minimum Order Total: Enter minimum order total to allow use of the paymentmethod. • Maximum Order Total: Enter maximum order total to allow use of the paymentmethod. • Sort Order: Enter sort order of the paymentmethod. • Country Specific Settings: • Payment from Applicable Countries: Select all or selected countries to allow payments using PayWay direct payment. • Payment from Selected Countries: If you have set selected countries from the above option, select the countries to allow payments using PayWay directpayment. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
6. PayWay Direct Payment Method inFrontend Once the payment method is configured, it can be seen enabled in the frontend. Simply add products to cart and go to the check out, you can see the Westpac PayWay direct payment method enabled. Select it, enter the card details and click “Place Order” to finish payment and place the order successfully. The customers can tick the box here to save the card for future transactions. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
PayWay Direct Payment Details in My AccountSection • Immediately after the order is placed, the PayWay direct payment details can be seen in order view tab under the customer’s My Accountsection. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
PayWay Direct Payment StoredCards • If the vaultis enabled and the customers have ticked the box from the checkout page to save the cards for the future transactions, they can see stored cards in their My Accountsection • under “Stored Payment Methods”tab. • New Order Placement using StoredCards • If the vaultis enabled and the customer has ticked the box from the checkout page to save the card for the future transactions, he can use the stored card to pay for the new orderin • future. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
7. PayWay Direct Payment Details in Order ViewBackend Apart from the customer’s My Account section, the admin can see PayWay direct payment detailsfromtheSales→Orders→Order Viewsectionin the backend. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
8. PayWay Direct Payment Method for BackendOrder Just as the frontend, Westpac PayWay direct payment method also works with the backend orders. Admin needs to create a new order, select the customer, add products, enter the address details and select Westpac PayWay direct payment method, add card details and click “Submit Order” to place order from the backend using the Westpac PayWay direct paymentmethod. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
9. New Backend Order Placement using PayWay Direct StoredCards If the customer has stored cards for the future transactions, the admin can use the stored cards while creating a new order from the backend. The admin needs to create a new order, select the customer, add products, enter the address details and select PayWay payment stored card, and click “Submit Order” to place order from the backend using the PayWay Payment storedcards. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
10. Refund Online for PayWay DirectOrders If the customer initiates refund, admin can refund online for PayWay direct orders from invoice as shown in the belowimage. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
Configuration – PayWay TrustedFrame • To configure the trusted frame payment method, login to Magento 2, move to Stores →Configuration→Sales→PaymentMethods→PayWayPayment– Meetanshi →PayWay iframe Payment – Meetanshi, where you can find various settings to configure the extension. • Enabled: Enable PayWay trusted frame payment method fromhere. • Vault Enabled: Set YES to enable vault to allow customers save cards for future transactions. • BasicSettings: • Title: Enter the title for the PayWay trusted frame payment method to show in the frontend. • Show PayWay Logo: Select YES to show PayWay logo on the checkout page infrontend. • Sandbox Mode: Set YES to enable sandbox mode for the paymentgateway. • Payment Action: Select one of the payment actions for the paymentcapture. • Authorize: Authorizes and validates card for the order amount. The admin has to manually capture the amount (by generating invoice using “Capture Online” option) within theauthorization hold periodwhich is ranging from 1 day to 30 days (based on business and card types) for Westpac PayWayPayment. • Authorize and Capture: Authorizes and captures the order amountimmediately. • Merchant ID: Enter the merchant ID provided by Westpac PayWay payment while registration. • Publishable API Key: Enter the publishable key provided by Westpac PayWay payment whileregistration. • Secret API Key: Enter the secret API key provided by Westpac PayWay payment while registration. • Login tohttps://www.payway.com.au/with your credentials. Click on the Gear icon in the top right to move to the settings. Under the “Banking” section, click“Merchants”. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o Copy the Merchant ID and paste it into the relevant field in Magento 2extension configuration. Click “Back”button. o Now, click on “REST API Keys” under “Access to PayWay”section. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
o Click “Add” button to add new rest API keys. If already created, copy publishable and secret keys from here and paste them in the relevant Magento 2 extension configuration fields. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
Advanced Settings: • Vault Title: Enter the vault title to show in the email tocustomers. • New Order Status: Set status for the new orders placed through PayWay trusted frame method. • Debug: Select YES to enabledebug. • Instructions: Enter additional instructions to show on the checkout page in thefrontend. • Minimum Order Total: Enter the minimum order total to allow the use of the payment method. • Maximum Order Total: Enter the maximum order total to allow the use of the payment method. • Sort Order: Enter sort order of the paymentmethod. • Country Specific Settings: • Payment from Applicable Countries: Select all or selected countries to allow payments using PayWay trusted frame. • Payment from Selected Countries: If you have set selected countries from the above option, select the countries to allow payments using PayWay trustedframe. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
12. PayWay Trusted Frame Payment Method in Frontend Once the payment method is configured, it can be seen enabled in the frontend. Simply add products to cart and go to the checkout, you can see the PayWay trusted frame payment method enabled. Select it, enter the card details and click “Place Order” to finish payment and place the order successfully. The customers can tick the box here to save the card for futuretransactions. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
PayWay Trusted Frame Payment Details in My AccountSection • Immediately after the order is placed, the PayWay trusted frame payment details canbe • seen in order view tab under the customer’s My Accountsection. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
PayWay Payment Stored Cards • If the vaultis enabled and the customers have ticked the box from the checkout page to save the cards for the future transactions, they can see PayWay stored cards in their MyAccount • section under “Stored Payment Methods”tab. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
New Order Placement using StoredCards • If the vaultis enabled and the customer has ticked the box from the checkout page to save the card for the future transactions, he can use the stored card to pay for the neworder. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
13. PayWay Trusted Frame Payment Details in Order ViewBackend Apart from the customer’s My Account section, the admin can also see PayWay trusted frame payment detailsfromtheSales→Orders→OrderView section in thebackend. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
14. New Backend Order Placement using Trusted Frame StoredCards If the customer has stored cards for the future transactions, the admin can use the stored cards while creating a new order from the backend. The admin needs to create a new order, select the customer, add products, enter the address details, select PayWay stored card, and click “Submit Order” to place order from the backend using the PayWay payment storedcards. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi
15. Refund Online for PayWay Trusted FrameOrders If the customer initiates refund, admin can refund online for trusted frame orders from invoice as shown in the belowimage. Westpac PayWay Payment Gateway for Magento2 ©Meetanshi