Commit c8353246 authored by GiorgosK's avatar GiorgosK

Rename to commerce_winbank_redirect so it can be incorporated in existing DO project

parent 5457fe82
......@@ -6,7 +6,7 @@ Install as usual and go to `Commerce > configuration > payment > payment gateway
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
cd web/modules/contrib/commerce_winbank_redirect
npm run mock
```
......@@ -17,10 +17,10 @@ The mock urls can be changed from the UI settings
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
Referrer URL: https://yourdomain.com/commerce_winbank_redirect/callback
Success URL: https://yourdomain.com/commerce_winbank_redirect/callback?action=success
Failure URL: https://yourdomain.com/commerce_winbank_redirect/callback?action=failure
Backlink URL: https://yourdomain.com/commerce_winbank_redirect/callback?action=cancel
IP address: x.x.x.x
Answer method: POST
Installments: No (Currently not implemented)
......
commerce_winbank.payment_callback:
path: '/commerce_winbank/callback'
commerce_winbank_redirect.payment_callback:
path: '/commerce_winbank_redirect/callback'
defaults:
_controller: '\Drupal\commerce_winbank\Controller\CallbackController::callback'
_controller: '\Drupal\commerce_winbank_redirect\Controller\CallbackController::callback'
_title: 'Winbank Payment'
requirements:
_permission: 'access content'
......@@ -24,7 +24,7 @@ foreach ($_REQUEST as $key => $value) {
</div>
<h1>Will Send</h1>
<form action="http://drukick.test/commerce_winbank/callback" method="post">
<form action="http://drukick.test/commerce_winbank_redirect/callback" method="post">
SupportReferenceID: <input type="text" name="SupportReferenceID" value="1001"><br/>
ResultCode: <select name="ResultCode" id="">
<option selected="selected" value="0">0 Good</option>
......
<?php
namespace Drupal\commerce_winbank\Controller;
namespace Drupal\commerce_winbank_redirect\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Entity\EntityTypeManagerInterface;
......
<?php
namespace Drupal\commerce_winbank\Plugin\Commerce\PaymentGateway;
namespace Drupal\commerce_winbank_redirect\Plugin\Commerce\PaymentGateway;
use Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\OffsitePaymentGatewayBase;
use Drupal\Core\Form\FormStateInterface;
......@@ -13,7 +13,7 @@ use Drupal\Core\Form\FormStateInterface;
* label = "Winbank Payment Redirect",
* display_label = "Winbank Payment Redirect",
* forms = {
* "offsite-payment" = "Drupal\commerce_winbank\PluginForm\OffsiteRedirect\WinbankPaymentRedirectForm",
* "offsite-payment" = "Drupal\commerce_winbank_redirect\PluginForm\OffsiteRedirect\WinbankPaymentRedirectForm",
* },
* payment_method_types = {"credit_card"},
* credit_card_types = {
......
<?php
namespace Drupal\commerce_winbank\PluginForm\OffsiteRedirect;
namespace Drupal\commerce_winbank_redirect\PluginForm\OffsiteRedirect;
use Drupal\commerce_payment\Exception\InvalidResponseException;
use Drupal\commerce_payment\Exception\PaymentGatewayException;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment