| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/dansnotreville-fr/nice/plugins/hikashoppayment/payplug2/lib/Payplug/Resource/ |
Upload File : |
<?php
namespace Payplug\Resource;
use Payplug;
class Card extends APIResource
{
public static function fromAttributes(array $attributes)
{
$object = new Card();
$object->initialize($attributes);
return $object;
}
public static function deleteCard($card, Payplug\Payplug $payplug = null)
{
if ($payplug === null) {
$payplug = Payplug\Payplug::getDefaultConfiguration();
}
if ($card instanceof Card) {
$card = $card->id;
}
$httpClient = new Payplug\Core\HttpClient($payplug);
$response = $httpClient->delete(Payplug\Core\APIRoutes::getRoute(Payplug\Core\APIRoutes::CARD_RESOURCE, $card));
return $response;
}
public function delete(Payplug\Payplug $payplug = null)
{
self::deleteCard($this->id, $payplug);
}
}