Spade

Mini Shell

Directory:~$ /proc/self/root/home/lmsyaran/public_html/plugins/hikashoppayment/payplug2/lib/Payplug/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //proc/self/root/home/lmsyaran/public_html/plugins/hikashoppayment/payplug2/lib/Payplug/Payment.php

<?php
namespace Payplug;

class Payment
{
    public static function retrieve($paymentId, Payplug $payplug = null)
    {
    	return Resource\Payment::retrieve($paymentId, $payplug);
    }

    public static function abort($paymentId, Payplug $payplug = null)
    {
        $payment = Resource\Payment::fromAttributes(array('id'
=> $paymentId));
    	return $payment->abort($payplug);
    }

    public static function capture($paymentId, Payplug $payplug = null)
    {
        $payment = Resource\Payment::fromAttributes(array('id'
=> $paymentId));
        return $payment->capture($payplug);
    }

    public static function create(array $data, Payplug $payplug = null)
    {
    	return Resource\Payment::create($data, $payplug);
    }

    public static function listPayments($perPage = null, $page = null,
Payplug $payplug = null)
    {
    	return Resource\Payment::listPayments($perPage, $page, $payplug);
    }    
};