diff options
Diffstat (limited to 'views/mods/mod_amazon')
| -rw-r--r-- | views/mods/mod_amazon/order_done.phtml | 17 | ||||
| -rw-r--r-- | views/mods/mod_amazon/order_view_afterpayment.phtml | 24 |
2 files changed, 33 insertions, 8 deletions
diff --git a/views/mods/mod_amazon/order_done.phtml b/views/mods/mod_amazon/order_done.phtml index a0eb843..80665c9 100644 --- a/views/mods/mod_amazon/order_done.phtml +++ b/views/mods/mod_amazon/order_done.phtml @@ -20,7 +20,7 @@ <div id="PayWithAmazon" style="<?php echo (($this->view['wpsg_mod_amazon']['state'] === wpsg_mod_amazon::ORDER_DONE_GO)?'display:none':''); ?>"></div>
-<script type="text/javascript">/* <![CDATA[ */
+<script type="text/javascript">
var authRequest;
@@ -52,8 +52,7 @@ var autoRun = setInterval(function(){
- if (jQuery('#PayWithAmazon img').length > 0)
- {
+ if (jQuery('#PayWithAmazon img').length > 0) {
//setTimeout(function(){ jQuery('#PayWithAmazon img').click(); }, 1000);
clearInterval(autoRun);
@@ -62,7 +61,7 @@ }, 100);
-/* ]]> */</script>
+</script>
<?php } ?>
@@ -74,15 +73,17 @@ <input type="hidden" name="wpsg_done" value="<?php echo $_REQUEST['wpsg_done']; ?>" />
<input type="hidden" name="amazon[OrderReference]" id="wpsg_mod_amazon_OrderReference" value="" />
- <div id="walletWidgetDiv"></div>
+ <div id="walletWidgetDiv"></div><br />
<input type="submit" class="wpsg_button" name="submit" value="<?php echo __('Zahlung durchführen', 'wpsg'); ?>" id="wpsg_mod_amazon_doPayment" style="display:none;" />
<div class="wpsg_clear"></div>
</form>
-<script type="text/javascript">/* <![CDATA[ */
-
+<script>
+
+ jQuery('#walletWidgetDiv').show();
+
new OffAmazonPayments.Widgets.Wallet( {
sellerId: '<?php echo $this->get_option('wpsg_mod_amazon_seller_id'); ?>',
@@ -117,5 +118,5 @@ } ).bind("walletWidgetDiv");
-/* ]]> */</script>
+</script>
<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_amazon/order_view_afterpayment.phtml b/views/mods/mod_amazon/order_view_afterpayment.phtml new file mode 100644 index 0000000..5033df6 --- /dev/null +++ b/views/mods/mod_amazon/order_view_afterpayment.phtml @@ -0,0 +1,24 @@ +<?php
+
+ /**
+ * Template für die Integration der Amazon Zahlungsart in die Bestellverwaltung
+ */
+
+ /** @var wpsg_order $oOrder */
+ $oOrder = $this->view['oOrder'];
+
+ $amazon_capture_id = $oOrder->getMeta('amazon_capture_id');
+ $amazon_refund_id = $oOrder->getMeta('amazon_refund_id');
+
+?>
+
+<?php if (wpsg_isSizedString($amazon_refund_id)) { ?>
+
+ <?php echo wpsg_drawForm_Input(false, __('Refund ID', 'wpsg'), $amazon_refund_id, ['readonly' => true]); ?>
+
+<?php } else if (wpsg_isSizedString($amazon_capture_id)) { ?>
+
+ <?php echo wpsg_drawForm_Input(false, __('Capture ID', 'wpsg'), $amazon_capture_id, ['readonly' => true]); ?>
+
+<?php }
+
|
