Skip to content

Commit

Permalink
Add webhook subdomain for paybox calls (#9340)
Browse files Browse the repository at this point in the history
  • Loading branch information
ottaviano authored Nov 23, 2023
1 parent 83b9df2 commit 16716b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ AVECVOUS_HOST=avecvous.code
AVECVOUS_QRCODE_HOST=qr.avecvous.code
LEGISLATIVES_AVECVOUS_HOST=legislatives.avecvous.code
RENAISSANCE_HOST=renaissance.code
WEBHOOK_RENAISSANCE_HOST=webhook.renaissance.code
API_RENAISSANCE_HOST=api.renaissance.code
RENAISSANCE_QRCODE_HOST=qr.renaissance.code

Expand Down
16 changes: 10 additions & 6 deletions config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,22 @@ app_admin:
type: "annotation"
prefix: "/admin"

#
# En Marche app
#
lexik_paybox:
lexik_paybox_ipn_bc:
host: "{app_domain}"
resource: "@LexikPayboxBundle/Resources/config/routing.yml"
prefix: "/don"
path: /don/payment-ipn/{time}
controller: lexik_paybox.controller.default
methods: [ GET, POST ]
defaults:
app_domain: "%renaissance_host%"
requirements:
app_domain: "%app_host%|%renaissance_host%"

lexik_paybox_ipn:
host: "%webhook_renaissance_host%"
path: /paybox/payment-ipn/{time}
controller: lexik_paybox.controller.default
methods: [ GET, POST ]

# This route must be loaded first to prevent another route to match his path
map_events:
host: "%app_host%"
Expand Down
1 change: 1 addition & 0 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ parameters:
assessor_host: "%env(ASSESSOR_HOST)%"
legislatives_avecvous_host: "%env(LEGISLATIVES_AVECVOUS_HOST)%"
renaissance_host: "%env(RENAISSANCE_HOST)%"
webhook_renaissance_host: "%env(WEBHOOK_RENAISSANCE_HOST)%"
api_renaissance_host: "%env(API_RENAISSANCE_HOST)%"
renaissance_qrcode_host: "%env(RENAISSANCE_QRCODE_HOST)%"
assessor_path_prefix: ""
Expand Down

0 comments on commit 16716b2

Please sign in to comment.