Files

15 lines
436 B
PHP
Raw Permalink Normal View History

<?php
declare( strict_types=1 );
namespace StreamGoals\PayPal;
/** Minimal HTTP seam so the PayPal client is testable without WordPress. */
interface HttpTransport {
/**
* @param array<string,string> $headers
* @return array{status:int, body:string}
* @throws TransportException On network-level failure (no HTTP response).
*/
public function request( string $method, string $url, array $headers, ?string $body ): array;
}