diff --git a/modules/ppcp-blocks/resources/js/checkout-block.js b/modules/ppcp-blocks/resources/js/checkout-block.js
index 97590838e..fb012dbde 100644
--- a/modules/ppcp-blocks/resources/js/checkout-block.js
+++ b/modules/ppcp-blocks/resources/js/checkout-block.js
@@ -768,9 +768,24 @@ if ( block_enabled && config.enabled ) {
);
}
+ const PaypalLabel = ( { components, config } ) => {
+ const { PaymentMethodIcons } = components;
+
+ return (
+ <>
+
+
+ >
+ );
+ };
+
registerPaymentMethod( {
name: config.id,
- label:
,
+ label: ,
content: descriptionElement,
edit: descriptionElement,
placeOrderButtonLabel: config.placeOrderButtonText,
diff --git a/modules/ppcp-blocks/src/PayPalPaymentMethod.php b/modules/ppcp-blocks/src/PayPalPaymentMethod.php
index 50340b574..d6a617af0 100644
--- a/modules/ppcp-blocks/src/PayPalPaymentMethod.php
+++ b/modules/ppcp-blocks/src/PayPalPaymentMethod.php
@@ -248,6 +248,13 @@ class PayPalPaymentMethod extends AbstractPaymentMethodType {
return array(
'id' => $this->gateway->id,
'title' => $this->gateway->title,
+ 'icon' => [
+ [
+ 'id' => 'paypal',
+ 'alt' => 'PayPal',
+ 'src' => $this->gateway->icon
+ ]
+ ],
'description' => $this->gateway->description,
'enabled' => $this->settings_status->is_smart_button_enabled_for_location( $script_data['context'] ?? 'checkout' ),
'fundingSource' => $this->session_handler->funding_source(),