Problem/Motivation
Sometimes customers don't return from the payment provider. In this case no payment is added to the order, so you never know what happened, of even if the user got to the payment provider or just stopped.
Steps to reproduce
Proposed resolution
- The provider supports IPN. When the status of a payment changes, it can call a webhook. With the passed information we can collect the new response. We should implement this
- We should save the payment before we go to the payment provider. Thus we can see the payment has been initiated (status NEW).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | commerce_omnikassa-save_payment_before_exit-3183899-6.patch | 13.59 KB | joshahubbers |
Comments
Comment #2
joshahubbers commentedThis patch saves the payment before going to the external payment provider. When you return we check if there is a payment. If there is, we update it, else we create a new one.
Comment #3
joshahubbers commentedThis patch adds the ipn-page. Is work in progress, because I need to test this some more.
Comment #4
joshahubbers commentedNew day, new patch...
* fixed dependency injection. For some reason the entityTypeManager that came from the base class returned null.
* changed the request handling
* return a minimal page when the request is processed
* added catch phrases
* improved logging
Comment #5
joshahubbers commentedHm, I've been screwing with the tags, so the patch didn't apply. Try again.
Comment #6
joshahubbers commentedComment #7
joshahubbers commentedWell... that was not very clever. I should use the onNotify to handle the IPN-call. So that is updated in this patch.
Comment #8
joshahubbers commentedComment #9
joshahubbers commentedThis patch has been tested and works.
Comment #10
joshahubbers commented