| 1 |
<?php |
| 2 |
|
| 3 |
namespace Payplug\PayplugWoocommerce\Gateway\Blocks; |
| 4 |
|
| 5 |
class PayplugSatispay extends PayplugGenericBlock |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Payment method name/id/slug. |
| 9 |
* |
| 10 |
* @var string |
| 11 |
*/ |
| 12 |
protected $name = 'satispay'; |
| 13 |
|
| 14 |
/** |
| 15 |
* Returns an associative array of data to be exposed for the payment method's client side. |
| 16 |
*/ |
| 17 |
public function get_payment_method_data() |
| 18 |
{ |
| 19 |
$data = parent::get_payment_method_data(); |
| 20 |
$data['icon'] = [ |
| 21 |
'src' => esc_url(PAYPLUG_GATEWAY_PLUGIN_URL . '/assets/images/checkout/' . $this->gateway->image), |
| 22 |
'icon_alt' => $data['name'], |
| 23 |
]; |
| 24 |
|
| 25 |
return $data; |
| 26 |
} |
| 27 |
} |
| 28 |
|