Skip to content

Add PayU driver (PayU Global, Europe) - #35

Merged
elbanbydev merged 1 commit into
mainfrom
feature/gateway-payu
Dec 4, 2026
Merged

elbanbydev merged 1 commit into
mainfrom
feature/gateway-payu

Conversation

@elbanbydev

Copy link
Copy Markdown
Owner

Progress only, not finished: sixteenth international driver.

  • PayU Global (Europe) at secure.payu.com, explicitly not PayU India
  • OAuth2 client-credentials token as a form post; order create with lowest-unit string amounts; redirectUri as the checkout url
  • Notifications: MD5 of raw body + POS second key from OpenPayu-Signature, constant-time; raw-body-less bodies and ungrounded algorithms refused
  • Closed status set: COMPLETED paid, PENDING/WAITING_FOR_CONFIRMATION pending, CANCELED failed, anything else refused
  • Refunds: full (no amount, as documented) or partial; pending unless PayU says it is final
  • Config + PAYU_* env vars, 15 fixture tests, README EN + AR, CHANGELOG, composer metadata

637 passed, PHPStan level 8 clean, Pint clean. Fixture-tested only; no live PayU account has run it yet.

- PayUClient: OAuth2 client-credentials token as a form post, order create, refunds
- PayUGateway: redirect checkout, MD5 second-key notification verification, refunds
- Notifications: closed status set, algorithm refused rather than approximated
- Config + PAYU_* env vars, 15 fixture tests
- README EN + AR, CHANGELOG, composer metadata
@elbanbydev
elbanbydev merged commit 2bfc27c into main Dec 4, 2026
8 checks passed
@elbanbydev
elbanbydev deleted the feature/gateway-payu branch December 4, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants