Posted on 22/06/2023 12:37:35
Hey Nicolai,
The scenario is this: we have implemented a reccurent payment system and sometimes the cards expire. Our client wants a link that will allow the user to update the card info - in order to do that we need to create a payment and update the order with new data that we get from the payment gateway
The easiest way we found is to create a custom page that will get ?orderid=OREDER1 and this page should show the updatecard form. Since I don't know to much about custom pages in DW , I can't figure out how to do some backend stuff , before rendering the template
What I did:
- created a custom item
- created a NotificationSubscriber
What I don't know how to do:
- which events should I use
- how exactley to send data from the subscriber to the Template :-/
Note: My idea is that in the subscriber to make a call to NETS so I can get the paymentId and send that to the Razor when it renders. This is necesary in order to load the Payment Form from NETS