From 8c9ff08dc30982eb925b6594529d852b6e011ef9 Mon Sep 17 00:00:00 2001 From: Daniel STANCU Date: Wed, 8 Aug 2018 21:48:47 +0300 Subject: [PATCH] Refactor confirm & return urls --- .../1.0/config/packages/netopia_mobilpay.yaml | 3 +-- .../1.0/config/routes/netopia_mobilpay.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 birkof/netopia-mobilpay-bundle/1.0/config/routes/netopia_mobilpay.yaml diff --git a/birkof/netopia-mobilpay-bundle/1.0/config/packages/netopia_mobilpay.yaml b/birkof/netopia-mobilpay-bundle/1.0/config/packages/netopia_mobilpay.yaml index f520c013..12525826 100644 --- a/birkof/netopia-mobilpay-bundle/1.0/config/packages/netopia_mobilpay.yaml +++ b/birkof/netopia-mobilpay-bundle/1.0/config/packages/netopia_mobilpay.yaml @@ -3,5 +3,4 @@ netopia_mobilpay: public_cert: '%env(NETOPIA_MOBILPAY_PUBLIC_CERT)%' private_key: '%env(NETOPIA_MOBILPAY_PRIVATE_KEY)%' signature: '%env(NETOPIA_MOBILPAY_SIGNATURE)%' - return_url: 'netopia_mobilpay_return_url' - confirm_url: 'netopia_mobilpay_confirm_url' + sms_service: '%env(NETOPIA_MOBILPAY_SMS_SERVICE)%' diff --git a/birkof/netopia-mobilpay-bundle/1.0/config/routes/netopia_mobilpay.yaml b/birkof/netopia-mobilpay-bundle/1.0/config/routes/netopia_mobilpay.yaml new file mode 100644 index 00000000..83daa3cd --- /dev/null +++ b/birkof/netopia-mobilpay-bundle/1.0/config/routes/netopia_mobilpay.yaml @@ -0,0 +1,9 @@ +netopia_mobilpay_return_url: + controller: "@NetopiaMobilPayBundle/Controller/NetopiaMobilpayController.php::returnUrlAction" + path: /netopia-mobilpay/thank-you + methods: GET + +netopia_mobilpay_confirm_url: + controller: "@NetopiaMobilPayBundle/Controller/NetopiaMobilpayController.php::confirmUrlAction" + path: /netopia-mobilpay/confirm + methods: POST