1. Go to this page and download the library: Download winpay/core library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
winpay / core example snippets
interface ConfigInterface
{
public function getPartnerId(): string;
public function getMerchantPrivateKey(): string;
public function getChannelId(): string;
public function getBaseUrl(): string;
public function getWinpayPublicKey(): ?string;
public function get(string $key, mixed $default = null): mixed;
public function set(string $key, mixed $value): void;
public function all(): array;
}
interface HttpClientInterface
{
public function request(string $method, string $endpoint, ?array $body = null): WinpayResponse;
}