diff --git a/README.md b/README.md index 63281411996b2fbea2295b24c542103f87a48da5..cb1102089bd20477b184e3169ca4b950fe202a85 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,28 @@ # Winbank Piraeus Redirect Payment for Drupal 8 Commerce +Install as usual and go to `Commerce > configuration > payment > payment gateways` and add method and choose Winbank from the options provided and fill in the required fields + # Testing -Start the mock server +Start the mock server and if the payment is set to test it will communicate with the mock server ``` +cd web/modules/contrib/commerce_winbank npm run mock ``` -and if the payment is set to test it will communicate with the mock server -mock url can also be changed from the UI + +The mock urls can be changed from the UI settings + +# Technical information for testing account + +You need to send Piraeus Bank the following +``` +Web site URL: https://yourdomain.com +Referrer URL: https://yourdomain.com/commerce_winbank/callback +Success URL: https://yourdomain.com/commerce_winbank/callback?action=success +Failure URL: https://yourdomain.com/commerce_winbank/callback?action=failure +Backlink URL: https://yourdomain.com/commerce_winbank/callback?action=cancel +IP address: x.x.x.x +Answer method: POST +Installments: No (Currently not implemented) +Payment method: to appear or not appear (check manual) +```