mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Change "register" to "subscribe" for consistency
This commit is contained in:
parent
a6b1b79e74
commit
8ea2d3daf6
2 changed files with 4 additions and 4 deletions
|
@ -15,8 +15,8 @@ use WooCommerce\PayPalCommerce\Webhooks\Status\WebhooksStatusPage;
|
|||
return array(
|
||||
'wcgateway.settings.fields' => static function ( $container, array $fields ): array {
|
||||
$status_page_fields = array(
|
||||
'webhooks-list' => array(
|
||||
'title' => __( 'Registered webhooks', 'woocommerce-paypal-payments' ),
|
||||
'webhooks_list' => array(
|
||||
'title' => __( 'Subscribed webhooks', 'woocommerce-paypal-payments' ),
|
||||
'type' => 'ppcp-table',
|
||||
'screens' => array(
|
||||
State::STATE_PROGRESSIVE,
|
||||
|
|
|
@ -92,10 +92,10 @@ class WebhookRegistrar {
|
|||
self::KEY,
|
||||
$created->to_array()
|
||||
);
|
||||
$this->logger->info( 'Webhooks registered.' );
|
||||
$this->logger->info( 'Webhooks subscribed.' );
|
||||
return true;
|
||||
} catch ( RuntimeException $error ) {
|
||||
$this->logger->error( 'Failed to register webhooks: ' . $error->getMessage() );
|
||||
$this->logger->error( 'Failed to subscribe webhooks: ' . $error->getMessage() );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue