itelmenko/php-payonline-client

Payonline API Client PHP library

Installs: 1 111

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/itelmenko/php-payonline-client

1.0.1 2020-01-17 09:29 UTC

This package is auto-updated.

Last update: 2025-10-18 23:08:57 UTC


README

Работа с Payonline для приема платежей через платежную страницу на стороне https://payonline.ru

Пример

$page = new PaymentPage($settings['merchant_id'], $settings['private_key']);
$page->setPaymentMethod(new PaymentMethod(PaymentMethod::PAYMENT_METHOD_CARD));
$page->setPrice(new Amount(10.95), new Currency(Currency::CURRENCY_USD));
$page->setOrderId(232424);
$page->setFailUrl('https://custom-domain.ru/payment/fail');
$page->setReturnUrl('https://custom-domain.ru/payment/return');
$page->setLanguage(new Language(Language::LANG_RUSSIAN));
$url = $page->getPaymentUrl();
header("Location: {$url}");