-
-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better documentation for notification #339
Comments
The structure of each notification message will vary from gateway to gateway. You need to check the gateway plugin documentation for each gateway to see the documentation for notifications. I'm aware that it's there for both PaymentWall and MultiCards, not sure about the others. |
Is this related to #327 ? |
It seems no gateway has implemented the notification interface, are notifications even useable yet with omnipay bridge? |
No, what Iinked is a suggestion for the upcoming v3, but is that what you mean? |
This sounds like it is |
@MHaendel my 2checkout driver has the notification interface implemented. see https://github.com/collizo4sky/omnipay-2checkout/blob/master/src/Gateway.php#L107 |
PAYONE and Sage Pay Server, both use the notification interface. I've added some documentation on how Sage Pay uses it and also how PAYONE uses it. My hope is that some of that will be useful where it is common between all the notification callbacks. Also if the way these callbacks are used does not look right, or would not work for other gateways, then shout and we can look at fixing that. Note: Sage Pay also still has the legacy |
FYI For the reference Payum/OmnipayBridge#28 If you think the notify action could be improved or it does someting not omnipay way please let us know. |
I believe Payum handles the storage and sharing of transactions between the front end and the back-channel. This is something OmniPay does not do - it is more concerned with the format and normalisation of the HTTP messages, and not storage or GUI. Just as some background to that, when a notification comes in, it is direct server-to-server from the payment gateway, not involving the user and so has no context, e.g. no access to the current user's session. So it must be able to access the transaction stored in the database, so it can amend it with the notification details. Sometimes notifications can arrive a significant time after the user is involved (e.g. a cancellation of a pending payment). |
@judgej should we use acceptNotification method instead of fetchTransaction? |
The Payum knows the payment context (Because the notification url contains a token associated with payment in database). |
Not all gateways support dynamic notification URLs, so the transaction ID will be in the POST data. Same thing though - there is no context until the handler inspects the incoming data.
They do two different things - assuming they are both referring to OmniPay gateway methods. So I'm not sure how one replaces the other. Unless I'm misunderstanding what you mean? |
@judgej The payment gateway sends us a notification request, and we can fetch transaction details, update our model and act according to the changes. That's the idea behind |
Nice to see this implemented, but the documentation is lacking. I found no way to integrate this, I use omnipay with the bridge in payum, and without notification I need to rewrite gateways to payum.
The text was updated successfully, but these errors were encountered: