Subversion Repositories wpShopGermany4

Rev

Rev 7584 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4719 daniel 1
<?php
2
 
3
	/**
4985 daniel 4
	 * Template für die Integration der PayPal Zahlungsart in die Bestellverwaltung
4719 daniel 5
	 */
7343 daniel 6
 
7
	$wpsg_mod_paypalapi_paymentid = $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_paymentid');
7717 daniel 8
	$wpsg_mod_paypalapi_saleid = $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_saleid');
9
 
4719 daniel 10
?>
11
 
7343 daniel 12
<?php if (wpsg_isSizedString($wpsg_mod_paypalapi_paymentid)) { ?>
6683 daniel 13
 
14
	<?php echo wpsg_drawForm_Text(
15
		wpsg_translate(
16
			__('PaymentID [<a href="#1#">Status Aktualisieren</a>]', 'wpsg'),
7584 daniel 17
			wpsg_admin_url('Order', 'ajax', ['noheader' => '1', 'mod' => 'wpsg_mod_paypalapi', 'do' => 'refresh', 'edit_id' => $this->view['oOrder']->id])
18
			//WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_paypalapi&do=refresh&edit_id='.$this->view['oOrder']->id
6683 daniel 19
		),
7717 daniel 20
		wpsg_translate(__('#1# (#2#)', 'wpsg'), $wpsg_mod_paypalapi_paymentid, $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_paymentstate'))
6683 daniel 21
	); ?>
22
 
4741 daniel 23
<?php } ?>
4719 daniel 24
 
7343 daniel 25
<?php if (wpsg_isSizedString($wpsg_mod_paypalapi_saleid)) { ?>
4741 daniel 26
 
6683 daniel 27
	<?php echo wpsg_drawForm_Text(__('SaleID', 'wpsg'), wpsg_translate(__('#1# (#2#)', 'wpsg'), $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_saleid'), $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_salestate'))); ?>
5257 daniel 28
 
29
	<?php if ($this->view['oOrder']->getMeta('wpsg_mod_paypalapi_salestate') != 'refunded') { ?>
30
	<br />
6683 daniel 31
	<a onclick="return confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>');" class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_paypalapi&do=refund&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Zahlung rückerstatten', 'wpsg'); ?></a>
5257 daniel 32
	<?php } ?>
4995 daniel 33
 
4741 daniel 34
<?php } ?>