1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Displays the set-up wizard bussiness settings. |
4
|
|
|
* |
5
|
|
|
*/ |
6
|
|
|
|
7
|
|
|
defined( 'ABSPATH' ) || exit; |
8
|
|
|
|
9
|
|
|
global $aui_bs5; |
10
|
|
|
?> |
11
|
|
|
<div class="card shadow-sm my-5">' |
12
|
|
|
|
13
|
|
|
<form method="post" class="text-center card-body"> |
14
|
|
|
<div class="gp-wizard-payments"> |
15
|
|
|
<h2 class="gd-settings-title h3 "><?php esc_html_e( 'Gateway Setup', 'invoicing' ); ?></h2> |
16
|
|
|
<p><?php esc_html_e( 'Below are a few gateways that can be setup in a few seconds.', 'invoicing' ); ?> |
17
|
|
|
<br> |
18
|
|
|
<?php esc_html_e( 'We have 20+ Gateways that can be setup later.', 'invoicing' ); ?> |
19
|
|
|
</p> |
20
|
|
|
|
21
|
|
|
<ul class="list-group"> |
22
|
|
|
|
23
|
|
|
<li class="list-group-item d-flex justify-content-between align-items-center"> |
24
|
|
|
<span class="mr-auto"><img src="<?php echo esc_url( WPINV_PLUGIN_URL . 'assets/images/stripe-verified.svg' ); ?>" class="<?php echo( $aui_bs5 ? 'ms-n2' : 'ml-n2' ); ?>" alt="Stripe"></span> |
25
|
|
|
<?php if ( false === wpinv_get_option( 'stripe_live_connect_account_id' ) ) : ?> |
26
|
|
|
<a href="<?php |
27
|
|
|
echo esc_url( wp_nonce_url( |
28
|
|
|
add_query_arg( |
29
|
|
|
array( |
30
|
|
|
'getpaid-admin-action' => 'connect_gateway', |
31
|
|
|
'plugin' => 'stripe', |
32
|
|
|
'redirect' => urlencode( add_query_arg( 'step', 'payments' ) ), |
33
|
|
|
), |
34
|
|
|
admin_url() |
35
|
|
|
), |
36
|
|
|
'getpaid-nonce', |
37
|
|
|
'getpaid-nonce' |
38
|
|
|
)); |
39
|
|
|
?>" |
40
|
|
|
class="btn btn-sm btn-outline-primary"><?php esc_html_e( 'Connect', 'invoicing' ); ?></a> |
41
|
|
|
<?php else : ?> |
42
|
|
|
<span class="btn btn-sm btn-success"><?php esc_html_e( 'Connected', 'invoicing' ); ?></span> |
43
|
|
|
<?php endif; ?> |
44
|
|
|
</li> |
45
|
|
|
|
46
|
|
|
<li class="list-group-item"> |
47
|
|
|
<div class="d-flex justify-content-between align-items-center"> |
48
|
|
|
<span class="<?php echo( $aui_bs5 ? 'me-auto' : 'mr-auto' ); ?>"> |
49
|
|
|
<img src="<?php echo esc_url( WPINV_PLUGIN_URL . 'assets/images/pp-logo-150px.webp' ); ?>" class="" alt="PayPal" height="25"> |
50
|
|
|
</span> |
51
|
|
|
<a |
52
|
|
|
href="#" |
53
|
|
|
onclick="jQuery('.getpaid-setup-paypal-input').toggleClass('d-none'); return false;" |
54
|
|
|
class="getpaid-setup-paypal btn btn-sm btn-outline-primary"><?php esc_html_e( 'Set-up', 'invoicing' ); ?></a> |
55
|
|
|
</div> |
56
|
|
|
<div class="mt-4 getpaid-setup-paypal-input d-none"> |
57
|
|
|
<input type="text" placeholder="<?php esc_attr_e( 'PayPal Email', 'invoicing' ); ?>" name="paypal-email" class="form-control" value="<?php echo esc_attr( wpinv_get_option( 'paypal_email' ) ); ?>"> |
|
|
|
|
58
|
|
|
</div> |
59
|
|
|
</li> |
60
|
|
|
|
61
|
|
|
<li class="list-group-item d-flex justify-content-between align-items-center"> |
62
|
|
|
<span class="<?php echo( $aui_bs5 ? 'me-auto' : 'mr-auto' ); ?>"><?php esc_html_e( 'Test Gateway', 'invoicing' ); ?></span> |
63
|
|
|
<div class="<?php echo ( $aui_bs5 ? 'form-check form-switch' : 'custom-control custom-switch' ); ?>"> |
64
|
|
|
<input type="checkbox" name="enable-manual-gateway" id="enable-manual-gateway" value="1" class="<?php echo ( $aui_bs5 ? 'form-check-input' : 'custom-control-input' ); ?>" <?php checked( wpinv_is_gateway_active( 'manual' ) ); ?>> |
65
|
|
|
<label class="<?php echo ( $aui_bs5 ? 'form-check-label' : 'custom-control-label' ); ?>" for="enable-manual-gateway"></label> |
66
|
|
|
</div> |
67
|
|
|
</li> |
68
|
|
|
</ul> |
69
|
|
|
</div> |
70
|
|
|
|
71
|
|
|
<p class="gp-setup-actions step text-center mt-4"> |
72
|
|
|
<input type="submit" class="btn btn-primary" value="<?php esc_attr_e( 'Continue', 'invoicing' ); ?>" /> |
73
|
|
|
</p> |
74
|
|
|
|
75
|
|
|
<?php getpaid_hidden_field( 'save_step', 1 ); ?> |
76
|
|
|
<?php wp_nonce_field( 'getpaid-setup-wizard', 'getpaid-setup-wizard' ); ?> |
77
|
|
|
</form> |
78
|
|
|
</div> |
79
|
|
|
|