bileto / omnipay-payu

PayU driver for the Omnipay PHP payment processing library
5 stars 17 forks source link

Omnipay 3.x #8

Open Misha-in opened 1 year ago

Misha-in commented 1 year ago

Omnipay is already in version 3, but unfortunately this plugin is invalid for this version. Would it be possible to upgrade?

ptomulik commented 8 months ago

@Misha-in Is it true? It looks like the plugin was more-or-less adjusted to omnipay v3 about three years ago (versions 1.x depend on omnipay/common ^3). No idea, why the omnipay's README has not been updated, maybe there is something else that prevent it from being blocked as officially compatible.

One thing I see is that the Gateway::purchase() is wrong here. This was noticed in a fork of this repo, see: https://github.com/sylapi/omnipay-payu-openpayu

Fixes are summarized in this diff: https://github.com/bileto/omnipay-payu/compare/master...sylapi:omnipay-payu-openpayu:master