| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
|
| 5 |
?> |
| 6 |
|
| 7 |
<div class="wrap"> |
| 8 |
<h1> |
| 9 |
<?php echo __( 'Vipps/MobilePay Recurring Payments', 'woo-vipps' ); ?> |
| 10 |
</h1> |
| 11 |
|
| 12 |
<?php |
| 13 |
/* translators: link to the plugin's settings page */ |
| 14 |
echo sprintf( __( "This area is for special actions that aren't settings. If you are looking for the plugin's settings, click <a href='%s'>here</a>.", 'woo-vipps' ), admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=vipps_recurring' ) ); |
| 15 |
?> |
| 16 |
|
| 17 |
<div class="card"> |
| 18 |
<p> |
| 19 |
<?php echo __( 'If you have a lot of Vipps/MobilePay subscription orders that are currently on-hold you might want to force check the status of all the orders instead of waiting for the cron-job to do it\'s job.', 'woo-vipps' ); ?> |
| 20 |
</p> |
| 21 |
|
| 22 |
<button |
| 23 |
class="button button-primary" |
| 24 |
type="submit" |
| 25 |
id="check_charge_statuses_now" |
| 26 |
> |
| 27 |
<?php echo __( 'Check status of all Vipps/MobilePay subscription orders now', 'woo-vipps' ); ?> |
| 28 |
</button> |
| 29 |
</div> |
| 30 |
|
| 31 |
<h2> |
| 32 |
<?php echo __( 'Pending Charges', 'woo-vipps' ); ?> |
| 33 |
</h2> |
| 34 |
|
| 35 |
<form method="get"> |
| 36 |
<input type="hidden" name="page" value="woo-vipps-recurring"> |
| 37 |
|
| 38 |
<?php |
| 39 |
global $wc_vipps_recurring_list_table_pending_charges; |
| 40 |
|
| 41 |
if ( $wc_vipps_recurring_list_table_pending_charges ) { |
| 42 |
$wc_vipps_recurring_list_table_pending_charges->prepare_items(); |
| 43 |
echo $wc_vipps_recurring_list_table_pending_charges->display(); |
| 44 |
} |
| 45 |
?> |
| 46 |
</form> |
| 47 |
|
| 48 |
<h2> |
| 49 |
<?php echo __( 'Failed Charges', 'woo-vipps' ); ?> |
| 50 |
</h2> |
| 51 |
|
| 52 |
<p> |
| 53 |
<?php |
| 54 |
|
| 55 |
echo sprintf( |
| 56 |
/* translators: %s: link to possible failure reasons */ |
| 57 |
__( 'A list of possible failure reasons and what they mean can be found %s', 'woo-vipps' ), |
| 58 |
'<a href="https://developer.vippsmobilepay.com/docs/APIs/recurring-api/vipps-recurring-api/#charge-failure-reasons" target="_blank" rel="noreferrer">' . __( 'here', 'woo-vipps' ) . '</a>' |
| 59 |
); |
| 60 |
|
| 61 |
?> |
| 62 |
|
| 63 |
</p> |
| 64 |
|
| 65 |
<form method="get"> |
| 66 |
<input type="hidden" name="page" value="woo-vipps-recurring"> |
| 67 |
|
| 68 |
<?php |
| 69 |
global $wc_vipps_recurring_list_table_failed_charges; |
| 70 |
|
| 71 |
if ( $wc_vipps_recurring_list_table_failed_charges ) { |
| 72 |
$wc_vipps_recurring_list_table_failed_charges->prepare_items(); |
| 73 |
echo $wc_vipps_recurring_list_table_failed_charges->display(); |
| 74 |
} |
| 75 |
?> |
| 76 |
</form> |
| 77 |
</div> |
| 78 |
|