Subversion Repositories wpShopGermany4

Rev

Rev 7717 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7717 Rev 7756
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
	/**
3
	/**
4
	 * Template für die Integration der PayPal Zahlungsart in die Bestellverwaltung
4
	 * Template für die Integration der Amazon Zahlungsart in die Bestellverwaltung
5
	 */
5
	 */
6
	
6
 
-
 
7
	/** @var wpsg_order $oOrder */
-
 
8
	$oOrder = $this->view['oOrder'];
-
 
9
 
7
	$wpsg_mod_paypalapi_paymentid = $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_paymentid');
10
	$amazon_capture_id = $oOrder->getMeta('amazon_capture_id');
8
	$wpsg_mod_paypalapi_saleid = $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_saleid');
11
	$amazon_refund_id = $oOrder->getMeta('amazon_refund_id');
9
 
12
 
10
?>
13
?>
11
 
14
 
12
<?php if (wpsg_isSizedString($wpsg_mod_paypalapi_paymentid)) { ?>
15
<?php if (wpsg_isSizedString($amazon_refund_id)) { ?>
-
 
16
 
-
 
17
	<?php echo wpsg_drawForm_Input(false, __('Refund ID', 'wpsg'), $amazon_refund_id, ['readonly' => true]); ?>
-
 
18
 
-
 
19
<?php } else if (wpsg_isSizedString($amazon_capture_id)) { ?>
-
 
20
 
-
 
21
	<?php echo wpsg_drawForm_Input(false, __('Capture ID', 'wpsg'), $amazon_capture_id, ['readonly' => true]); ?>
-
 
22
 
-
 
23
<?php }
13
 
24
 
14
	<?php echo wpsg_drawForm_Text(
-
 
15
		wpsg_translate(
-
 
16
			__('PaymentID [<a href="#1#">Status Aktualisieren</a>]', 'wpsg'),
-
 
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
-
 
19
		),
-
 
20
		wpsg_translate(__('#1# (#2#)', 'wpsg'), $wpsg_mod_paypalapi_paymentid, $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_paymentstate'))
-
 
21
	); ?>
-
 
22
 
-
 
23
<?php } ?>
-
 
24
 
-
 
25
<?php if (wpsg_isSizedString($wpsg_mod_paypalapi_saleid)) { ?>
-
 
26
 
-
 
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'))); ?>
-
 
28
	
-
 
29
	<?php if ($this->view['oOrder']->getMeta('wpsg_mod_paypalapi_salestate') != 'refunded') { ?>
-
 
30
	<br />
-
 
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>
-
 
32
	<?php } ?> 	
-
 
33
	 	
-
 
34
<?php } ?>
-