Search by

dominservice / payu_marketplace

dominservice

PHP client for PayU Marketplace seller verification and marketplace operations.

Package info

github.com/dominservice/payu_marketplace

pkg:composer/dominservice/payu_marketplace

Statistics

Installs: 124

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

dev-main 2026-11-23 20:28 UTC

This package is auto-updated.

Last update: 2026-11-23 20:28:33 UTC


README

This PHP client wraps seller verification and marketplace operations for PayU Europe. It builds on the OpenPayU PHP SDK. The marketplace and seller verification extensions are maintained by Mateusz Domin at Domin Software.

Packagist package ยท PayU Marketplace documentation

Key Features

  • Start seller verification and submit seller, associate and document data.
  • Build marketplace orders with products assigned to sellers and configurable seller fees.
  • Authenticate through PayU OAuth and configure a local token cache.

Requirements

  • PHP 7.3+ with the cURL and JSON extensions, as declared by the package.
  • A PayU Europe REST API point of sale with Marketplace enabled.
  • Sandbox credentials for integration testing.

The package is distributed as the dev-main development branch. Check the operations your application relies on against the current PayU sandbox before deploying.

Installation

composer require dominservice/payu_marketplace:dev-main

Quick Start

Load your PayU sandbox credentials from the application environment. Use synthetic seller data approved for the sandbox.

require __DIR__ . '/vendor/autoload.php';

use Dominservice\PayuMarketplace\Api\Configuration;
use Dominservice\PayuMarketplace\Seller;

Configuration::setEnvironment('sandbox');
Configuration::setMerchantPosId(getenv('PAYU_POS_ID'));
Configuration::setSignatureKey(getenv('PAYU_SECOND_KEY'));
Configuration::setOauthClientId(getenv('PAYU_CLIENT_ID'));
Configuration::setOauthClientSecret(getenv('PAYU_CLIENT_SECRET'));

$result = (new Seller())->initializingVerification('sandbox-seller-001');

if (!$result || $result->getError()) {
    throw new RuntimeException('PayU rejected the sandbox verification request.');
}

$verificationId = $result->getResponse()->verificationId ?? null;

Keep the verification ID returned by PayU for subsequent seller verification calls. Follow the provider's boarding guide for the fields required at each stage and for notification setup.

Verification Types

The package provides constants on Dominservice\PayuMarketplace\Api\PayU for the FULL, PAYOUT_ACCOUNT_DATA, UPDATE, REVERIFICATION and PERSONAL_ID_TAX_ID_CHANGE flows. The default initialization uses FULL. Check the PayU API reference for the current requirements of the flow you are implementing.

OAuth Token Cache

Applications using Dominservice\PayuMarketplace\Api\Oauth\OauthCacheFile can register it through Configuration::setOauthTokenCache(). Use a private directory writable by the application process and outside the public web root.

Support

Report package issues on GitHub.

If this package helps you, you can buy me a coffee to support its maintenance.

Buy me a coffee on Ko-fi

License

See the repository's MIT license. Files derived from OpenPayU retain their original LGPL-3.0 notices.