Skip to content

Instantly share code, notes, and snippets.

@gazmend-sahiti
gazmend-sahiti / iPaymer.php
Created December 18, 2024 16:05
iPaymer Guzzle Client example
<?php
namespace App\Services;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
class iPaymer
{
private $endpoint = 'http://127.0.0.1:8080/api/v{version}/';
@gazmend-sahiti
gazmend-sahiti / iPaymer.php
Created December 18, 2024 16:03
Laravel HTTP facade example
<?php
namespace App\Services;
use Illuminate\Support\Facades\Http;
class iPaymer
{
private $endpoint = 'http://127.0.0.1:8080/api/v{version}/';
private $secret;
<?php
class iPaymer
{
private $endpoint = 'http://127.0.0.1:8080/api/v{version}/';
private $secret;
private function __construct($secret, $v)
{