PluginProbe
PayPlug for WooCommerce (Official) / 2.10.0
PayPlug for WooCommerce (Official) v2.10.0
3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 All 101 releases
payplug / src / Gateway / Blocks / PayplugIdeal.php

PayplugIdeal.php in PayPlug for WooCommerce (Official) 2.10.0, at src/Gateway/Blocks/PayplugIdeal.php

37 lines 643 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Payplug\PayplugWoocommerce\Gateway\Blocks;
4
5 use Payplug\PayplugWoocommerce\PayplugWoocommerceHelper;
6
7 class PayplugIdeal extends PayplugGenericBlock
8 {
9
10 /**
11 * Payment method name/id/slug.
12 *
13 * @var string
14 */
15 protected $name = 'ideal';
16
17
18 /**
19 * Returns an associative array of data to be exposed for the payment method's client side.
20 */
21 public function get_payment_method_data() {
22 $data = parent::get_payment_method_data();
23 $data['icon'] = [
24 "src" => esc_url(PAYPLUG_GATEWAY_PLUGIN_URL . '/assets/images/checkout/' . $this->gateway->image),
25 'icon_alt' => $data['name'],
26 ];
27
28 return $data;
29 }
30
31
32
33
34
35
36 }
37