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

@param   string                      $paymentId      the payment ID
@param   Payplug $payplug  the client configuration

@return  null|Resource\Payment the aborted payment or null on error

@throws  Exception\ConfigurationNotSetException
Aborts a Payment .