PluginProbe
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 1.0.4
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v1.0.4
4.7.2 4.7.1 4.7.0 4.6.6 4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.1 4.5.0 4.4.2 4.4.1 4.4.0 4.3.3 4.3.2 4.3.1 4.3.0 4.2.3 4.2.2 4.2.1 1.0.3 1.0.4 1.0.5 All 281 releases
surecart / views / admin / processors.php
processors.php
162 lines 11.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php \SureCart::render( 'layouts/partials/admin-settings-styles' ); ?>
2
3 <div id="sc-settings-container">
4 <?php \SureCart::render( 'layouts/partials/admin-settings-header' ); ?>
5
6 <div id="sc-settings-content">
7 <?php
8 \SureCart::render(
9 'layouts/partials/admin-settings-sidebar',
10 [
11 'tab' => $tab,
12 ]
13 );
14 ?>
15
16 <div class="sc-container">
17 <div class="sc-content">
18 <?php
19 \SureCart::render(
20 'layouts/partials/admin-settings-notices',
21 [
22 'status' => $status,
23 ]
24 );
25 ?>
26
27 <div class="sc-section-heading">
28 <h3>
29 <sc-icon name="credit-card" style="width: 22px; height: 22px; color: var(--sc-color-gray-900)"></sc-icon>
30 <span><?php esc_html_e( 'Processors', 'surecart' ); ?></span>
31 </h3>
32 </div>
33
34 <sc-card no-padding style="overflow: hidden">
35 <sc-stacked-list>
36 <sc-stacked-list-row href="<?php echo esc_url( trailingslashit( SURECART_APP_URL ) . 'processors' ); ?>" target="_blank">
37 <sc-icon name="chevron-right" slot="suffix"></sc-icon>
38 <sc-flex flex-direction="column" gap="1em">
39 <div>
40 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 360 150" version="1.1" style="height: 2rem">
41 <title>stripe</title>
42 <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
43 <g id="stripe" fill="#0A2540">
44 <path d="M360,77.4 C360,51.8 347.6,31.6 323.9,31.6 C300.1,31.6 285.7,51.8 285.7,77.2 C285.7,107.3 302.7,122.5 327.1,122.5 C339,122.5 348,119.8 354.8,116 L354.8,96 C348,99.4 340.2,101.5 330.3,101.5 C320.6,101.5 312,98.1 310.9,86.3 L359.8,86.3 C359.8,85 360,79.8 360,77.4 Z M310.6,67.9 C310.6,56.6 317.5,51.9 323.8,51.9 C329.9,51.9 336.4,56.6 336.4,67.9 L310.6,67.9 Z" id="Shape"></path>
45 <path d="M247.1,31.6 C237.3,31.6 231,36.2 227.5,39.4 L226.2,33.2 L204.2,33.2 L204.2,149.8 L229.2,144.5 L229.3,116.2 C232.9,118.8 238.2,122.5 247,122.5 C264.9,122.5 281.2,108.1 281.2,76.4 C281.1,47.4 264.6,31.6 247.1,31.6 Z M241.1,100.5 C235.2,100.5 231.7,98.4 229.3,95.8 L229.2,58.7 C231.8,55.8 235.4,53.8 241.1,53.8 C250.2,53.8 256.5,64 256.5,77.1 C256.5,90.5 250.3,100.5 241.1,100.5 Z" id="Shape"></path>
46 <polygon id="Path" points="169.8 25.7 194.9 20.3 194.9 0 169.8 5.3"></polygon>
47 <rect id="Rectangle" x="169.8" y="33.3" width="25.1" height="87.5"></rect>
48 <path d="M142.9,40.7 L141.3,33.3 L119.7,33.3 L119.7,120.8 L144.7,120.8 L144.7,61.5 C150.6,53.8 160.6,55.2 163.7,56.3 L163.7,33.3 C160.5,32.1 148.8,29.9 142.9,40.7 Z" id="Path"></path>
49 <path d="M92.9,11.6 L68.5,16.8 L68.4,96.9 C68.4,111.7 79.5,122.6 94.3,122.6 C102.5,122.6 108.5,121.1 111.8,119.3 L111.8,99 C108.6,100.3 92.8,104.9 92.8,90.1 L92.8,54.6 L111.8,54.6 L111.8,33.3 L92.8,33.3 L92.9,11.6 Z" id="Path"></path>
50 <path d="M25.3,58.7 C25.3,54.8 28.5,53.3 33.8,53.3 C41.4,53.3 51,55.6 58.6,59.7 L58.6,36.2 C50.3,32.9 42.1,31.6 33.8,31.6 C13.5,31.6 0,42.2 0,59.9 C0,87.5 38,83.1 38,95 C38,99.6 34,101.1 28.4,101.1 C20.1,101.1 9.5,97.7 1.1,93.1 L1.1,116.9 C10.4,120.9 19.8,122.6 28.4,122.6 C49.2,122.6 63.5,112.3 63.5,94.4 C63.4,64.6 25.3,69.9 25.3,58.7 Z" id="Path"></path>
51 </g>
52 </g>
53 </svg>
54 </div>
55
56 <sc-text style="--color: var(--sc-color-gray-500);">
57 <?php esc_html_e( 'Connect with Stripe to accept credit cards and other payment methods.', 'surecart' ); ?>
58 </sc-text>
59
60 <div>
61 <?php if ( ! empty( $processors->stripe_live ) && ! empty( $processors->stripe_test ) ) : ?>
62 <sc-tag type="success"><?php esc_html_e( 'Test and Live Payments Enabled', 'surecart' ); ?></sc-tag>
63 <?php else : ?>
64 <?php if ( ! empty( $processors->stripe_live ) ) : ?>
65 <sc-tag type="success"><?php esc_html_e( 'Live Payments Enabled', 'surecart' ); ?></sc-tag>
66 <sc-tag type="warning"><?php esc_html_e( 'Test Payment Not Enabled', 'surecart' ); ?></sc-tag>
67 <?php endif; ?>
68 <?php if ( ! empty( $processors->stripe_test ) ) : ?>
69 <sc-tag type="success"><?php esc_html_e( 'Test Payments Enabled', 'surecart' ); ?></sc-tag>
70 <sc-tag type="warning"><?php esc_html_e( 'Live Payments Not Enabled', 'surecart' ); ?></sc-tag>
71 <?php endif; ?>
72 <?php endif; ?>
73 </div>
74 </sc-flex>
75 </sc-stacked-list-row>
76
77 <sc-stacked-list-row href="<?php echo esc_url( trailingslashit( SURECART_APP_URL ) . 'processors' ); ?>" target="_blank">
78 <sc-icon name="chevron-right" slot="suffix"></sc-icon>
79 <sc-flex flex-direction="column" gap="1em">
80 <div>
81 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="124px" height="33px" viewBox="0 0 124 33" enable-background="new 0 0 124 33" xml:space="preserve">
82 <path fill="#253B80" d="M46.211,6.749h-6.839c-0.468,0-0.866,0.34-0.939,0.802l-2.766,17.537c-0.055,0.346,0.213,0.658,0.564,0.658
83 h3.265c0.468,0,0.866-0.34,0.939-0.803l0.746-4.73c0.072-0.463,0.471-0.803,0.938-0.803h2.165c4.505,0,7.105-2.18,7.784-6.5
84 c0.306-1.89,0.013-3.375-0.872-4.415C50.224,7.353,48.5,6.749,46.211,6.749z M47,13.154c-0.374,2.454-2.249,2.454-4.062,2.454
85 h-1.032l0.724-4.583c0.043-0.277,0.283-0.481,0.563-0.481h0.473c1.235,0,2.4,0,3.002,0.704C47.027,11.668,47.137,12.292,47,13.154z"
86 />
87 <path fill="#253B80" d="M66.654,13.075h-3.275c-0.279,0-0.52,0.204-0.563,0.481l-0.145,0.916l-0.229-0.332
88 c-0.709-1.029-2.29-1.373-3.868-1.373c-3.619,0-6.71,2.741-7.312,6.586c-0.313,1.918,0.132,3.752,1.22,5.031
89 c0.998,1.176,2.426,1.666,4.125,1.666c2.916,0,4.533-1.875,4.533-1.875l-0.146,0.91c-0.055,0.348,0.213,0.66,0.562,0.66h2.95
90 c0.469,0,0.865-0.34,0.939-0.803l1.77-11.209C67.271,13.388,67.004,13.075,66.654,13.075z M62.089,19.449
91 c-0.316,1.871-1.801,3.127-3.695,3.127c-0.951,0-1.711-0.305-2.199-0.883c-0.484-0.574-0.668-1.391-0.514-2.301
92 c0.295-1.855,1.805-3.152,3.67-3.152c0.93,0,1.686,0.309,2.184,0.892C62.034,17.721,62.232,18.543,62.089,19.449z"/>
93 <path fill="#253B80" d="M84.096,13.075h-3.291c-0.314,0-0.609,0.156-0.787,0.417l-4.539,6.686l-1.924-6.425
94 c-0.121-0.402-0.492-0.678-0.912-0.678h-3.234c-0.393,0-0.666,0.384-0.541,0.754l3.625,10.638l-3.408,4.811
95 c-0.268,0.379,0.002,0.9,0.465,0.9h3.287c0.312,0,0.604-0.152,0.781-0.408L84.564,13.97C84.826,13.592,84.557,13.075,84.096,13.075z
96 "/>
97 <path fill="#179BD7" d="M94.992,6.749h-6.84c-0.467,0-0.865,0.34-0.938,0.802l-2.766,17.537c-0.055,0.346,0.213,0.658,0.562,0.658
98 h3.51c0.326,0,0.605-0.238,0.656-0.562l0.785-4.971c0.072-0.463,0.471-0.803,0.938-0.803h2.164c4.506,0,7.105-2.18,7.785-6.5
99 c0.307-1.89,0.012-3.375-0.873-4.415C99.004,7.353,97.281,6.749,94.992,6.749z M95.781,13.154c-0.373,2.454-2.248,2.454-4.062,2.454
100 h-1.031l0.725-4.583c0.043-0.277,0.281-0.481,0.562-0.481h0.473c1.234,0,2.4,0,3.002,0.704
101 C95.809,11.668,95.918,12.292,95.781,13.154z"/>
102 <path fill="#179BD7" d="M115.434,13.075h-3.273c-0.281,0-0.52,0.204-0.562,0.481l-0.145,0.916l-0.23-0.332
103 c-0.709-1.029-2.289-1.373-3.867-1.373c-3.619,0-6.709,2.741-7.311,6.586c-0.312,1.918,0.131,3.752,1.219,5.031
104 c1,1.176,2.426,1.666,4.125,1.666c2.916,0,4.533-1.875,4.533-1.875l-0.146,0.91c-0.055,0.348,0.213,0.66,0.564,0.66h2.949
105 c0.467,0,0.865-0.34,0.938-0.803l1.771-11.209C116.053,13.388,115.785,13.075,115.434,13.075z M110.869,19.449
106 c-0.314,1.871-1.801,3.127-3.695,3.127c-0.949,0-1.711-0.305-2.199-0.883c-0.484-0.574-0.666-1.391-0.514-2.301
107 c0.297-1.855,1.805-3.152,3.67-3.152c0.93,0,1.686,0.309,2.184,0.892C110.816,17.721,111.014,18.543,110.869,19.449z"/>
108 <path fill="#179BD7" d="M119.295,7.23l-2.807,17.858c-0.055,0.346,0.213,0.658,0.562,0.658h2.822c0.469,0,0.867-0.34,0.939-0.803
109 l2.768-17.536c0.055-0.346-0.213-0.659-0.562-0.659h-3.16C119.578,6.749,119.338,6.953,119.295,7.23z"/>
110 <path fill="#253B80" d="M7.266,29.154l0.523-3.322l-1.165-0.027H1.061L4.927,1.292C4.939,1.218,4.978,1.149,5.035,1.1
111 c0.057-0.049,0.13-0.076,0.206-0.076h9.38c3.114,0,5.263,0.648,6.385,1.927c0.526,0.6,0.861,1.227,1.023,1.917
112 c0.17,0.724,0.173,1.589,0.007,2.644l-0.012,0.077v0.676l0.526,0.298c0.443,0.235,0.795,0.504,1.065,0.812
113 c0.45,0.513,0.741,1.165,0.864,1.938c0.127,0.795,0.085,1.741-0.123,2.812c-0.24,1.232-0.628,2.305-1.152,3.183
114 c-0.482,0.809-1.096,1.48-1.825,2c-0.696,0.494-1.523,0.869-2.458,1.109c-0.906,0.236-1.939,0.355-3.072,0.355h-0.73
115 c-0.522,0-1.029,0.188-1.427,0.525c-0.399,0.344-0.663,0.814-0.744,1.328l-0.055,0.299l-0.924,5.855l-0.042,0.215
116 c-0.011,0.068-0.03,0.102-0.058,0.125c-0.025,0.021-0.061,0.035-0.096,0.035H7.266z"/>
117 <path fill="#179BD7" d="M23.048,7.667L23.048,7.667L23.048,7.667c-0.028,0.179-0.06,0.362-0.096,0.55
118 c-1.237,6.351-5.469,8.545-10.874,8.545H9.326c-0.661,0-1.218,0.48-1.321,1.132l0,0l0,0L6.596,26.83l-0.399,2.533
119 c-0.067,0.428,0.263,0.814,0.695,0.814h4.881c0.578,0,1.069-0.42,1.16-0.99l0.048-0.248l0.919-5.832l0.059-0.32
120 c0.09-0.572,0.582-0.992,1.16-0.992h0.73c4.729,0,8.431-1.92,9.513-7.476c0.452-2.321,0.218-4.259-0.978-5.622
121 C24.022,8.286,23.573,7.945,23.048,7.667z"/>
122 <path fill="#222D65" d="M21.754,7.151c-0.189-0.055-0.384-0.105-0.584-0.15c-0.201-0.044-0.407-0.083-0.619-0.117
123 c-0.742-0.12-1.555-0.177-2.426-0.177h-7.352c-0.181,0-0.353,0.041-0.507,0.115C9.927,6.985,9.675,7.306,9.614,7.699L8.05,17.605
124 l-0.045,0.289c0.103-0.652,0.66-1.132,1.321-1.132h2.752c5.405,0,9.637-2.195,10.874-8.545c0.037-0.188,0.068-0.371,0.096-0.55
125 c-0.313-0.166-0.652-0.308-1.017-0.429C21.941,7.208,21.848,7.179,21.754,7.151z"/>
126 <path fill="#253B80" d="M9.614,7.699c0.061-0.393,0.313-0.714,0.652-0.876c0.155-0.074,0.326-0.115,0.507-0.115h7.352
127 c0.871,0,1.684,0.057,2.426,0.177c0.212,0.034,0.418,0.073,0.619,0.117c0.2,0.045,0.395,0.095,0.584,0.15
128 c0.094,0.028,0.187,0.057,0.278,0.086c0.365,0.121,0.704,0.264,1.017,0.429c0.368-2.347-0.003-3.945-1.272-5.392
129 C20.378,0.682,17.853,0,14.622,0h-9.38c-0.66,0-1.223,0.48-1.325,1.133L0.01,25.898c-0.077,0.49,0.301,0.932,0.795,0.932h5.791
130 l1.454-9.225L9.614,7.699z"/>
131 </svg>
132 </div>
133
134 <sc-text style="--color: var(--sc-color-gray-500);">
135 <?php esc_html_e( 'Connect with PayPal to add a PayPal express button to your checkout.', 'surecart' ); ?>
136 </sc-text>
137
138 <div>
139 <?php if ( ! empty( $processors->paypal_live ) && ! empty( $processors->paypal_test ) ) : ?>
140 <sc-tag type="success"><?php esc_html_e( 'Test and Live Payments Enabled', 'surecart' ); ?></sc-tag>
141 <?php else : ?>
142 <?php if ( ! empty( $processors->paypal_live ) ) : ?>
143 <sc-tag type="success"><?php esc_html_e( 'Live Payments Enabled', 'surecart' ); ?></sc-tag>
144 <sc-tag type="warning"><?php esc_html_e( 'Test Payment Not Enabled', 'surecart' ); ?></sc-tag>
145 <?php endif; ?>
146 <?php if ( ! empty( $processors->paypal_test ) ) : ?>
147 <sc-tag type="success"><?php esc_html_e( 'Test Payments Enabled', 'surecart' ); ?></sc-tag>
148 <sc-tag type="warning"><?php esc_html_e( 'Live Payments Not Enabled', 'surecart' ); ?></sc-tag>
149 <?php endif; ?>
150 <?php endif; ?>
151 </div>
152 </sc-flex>
153
154 </sc-stacked-list-row>
155 </sc-stacked-list>
156 </sc-card>
157 </div>
158 </div>
159 </div>
160 </div>
161
162