You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to omnipay
Dear users,
When the user returns to the notifyUrl or when the PSP sends a transaction complete/succeeded request to this URL what is the best way to handle this? In my opinion i can implement acceptNotification or completePurchase for handling this. What is the prefered one?
Kind regards,
Boy
John C
unread,
Oct 28, 2015, 8:40:57 PM10/28/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to omnipay
Hi Boy,
When the user is returned to your URL after completing a transaction, completePurchase is used to handle fetching the result from the gateway.
acceptNotification is for when the gateway sends the result to your server, such as from webhooks like PayPal's IPN. The README sums up the two fairly well:
completePurchase($options) - handle return from off-site gateways after purchase
acceptNotification() - convert an incoming request from an off-site gateway to a generic notification object for further processing
Hope that makes sense!
Boy de Laat
unread,
Nov 9, 2015, 9:04:31 AM11/9/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to omnipay
Hi John,
Thank you! Do you have an acceptNotification example implementation available? And also it looks like i'm missing NotificationInterface (in the Omnipay Laravel package).
Kind regards,
Boy
John C
unread,
Nov 10, 2015, 8:03:57 AM11/10/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to omnipay
Hi Boy,
No worries! I've had a look around and it doesn't look like anyone has implemented acceptNotification yet. Given the interface was only added 2 weeks ago I guess it isn't a surprise. Happy for someone else on the mailing list to point out an example, but otherwise it looks like you'd be first.