1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8function wikiplugin_payment_info() 9{ 10 return [ 11 'name' => tra('Payment'), 12 'documentaion' => 'PluginPayment', 13 'description' => tra('Show the details of a payment request or invoice.'), 14 'prefs' => [ 'wikiplugin_payment', 'payment_feature' ], 15 'iconname' => 'money', 16 'introduced' => 5, 17 'params' => [ 18 'id' => [ 19 'required' => true, 20 'name' => tra('Payment Request Number'), 21 'description' => tra('Unique identifier of the payment request'), 22 'since' => '5.0', 23 'filter' => 'digits', 24 'default' => '', 25 ] 26 ] 27 ]; 28} 29 30function wikiplugin_payment($data, $params) 31{ 32 $smarty = TikiLib::lib('smarty'); 33 34 require_once 'lib/smarty_tiki/function.payment.php'; 35 return '^~np~' . smarty_function_payment($params, $smarty->getEmptyInternalTemplate()) . '~/np~^'; 36} 37