mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Fix lint
This commit is contained in:
parent
f24ec78c28
commit
9e0322ba9a
2 changed files with 5 additions and 5 deletions
|
@ -83,16 +83,16 @@ return array(
|
||||||
'api.paypal-host' => function( ContainerInterface $container ) : string {
|
'api.paypal-host' => function( ContainerInterface $container ) : string {
|
||||||
return PAYPAL_API_URL;
|
return PAYPAL_API_URL;
|
||||||
},
|
},
|
||||||
// It seems this 'api.paypal-website-url' key is always overridden in ppcp-onboarding/services.php
|
// It seems this 'api.paypal-website-url' key is always overridden in ppcp-onboarding/services.php.
|
||||||
'api.paypal-website-url' => function( ContainerInterface $container ) : string {
|
'api.paypal-website-url' => function( ContainerInterface $container ) : string {
|
||||||
return PAYPAL_URL;
|
return PAYPAL_URL;
|
||||||
},
|
},
|
||||||
'api.factory.paypal-checkout-url' => function( ContainerInterface $container ) : callable {
|
'api.factory.paypal-checkout-url' => function( ContainerInterface $container ) : callable {
|
||||||
return function ( string $id ) use ( $container ): string {
|
return function ( string $id ) use ( $container ): string {
|
||||||
return $container->get( 'api.paypal-website-url' ) . '/checkoutnow?token=' . $id;
|
return $container->get( 'api.paypal-website-url' ) . '/checkoutnow?token=' . $id;
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
'api.partner_merchant_id' => static function () : string {
|
'api.partner_merchant_id' => static function () : string {
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
'api.merchant_email' => function () : string {
|
'api.merchant_email' => function () : string {
|
||||||
|
|
|
@ -600,7 +600,7 @@ class PayPalSubscriptionsModule implements ModuleInterface {
|
||||||
'ppcp_paypal_subscription',
|
'ppcp_paypal_subscription',
|
||||||
__( 'PayPal Subscription', 'woocommerce-paypal-payments' ),
|
__( 'PayPal Subscription', 'woocommerce-paypal-payments' ),
|
||||||
function() use ( $subscription_id, $host ) {
|
function() use ( $subscription_id, $host ) {
|
||||||
$url = trailingslashit( $host ) . 'billing/subscriptions/' . $subscription_id;
|
$url = trailingslashit( $host ) . 'billing/subscriptions/' . $subscription_id;
|
||||||
echo '<p>' . esc_html__( 'This subscription is linked to a PayPal Subscription, Cancel it to unlink.', 'woocommerce-paypal-payments' ) . '</p>';
|
echo '<p>' . esc_html__( 'This subscription is linked to a PayPal Subscription, Cancel it to unlink.', 'woocommerce-paypal-payments' ) . '</p>';
|
||||||
echo '<p><strong>' . esc_html__( 'Subscription:', 'woocommerce-paypal-payments' ) . '</strong> <a href="' . esc_url( $url ) . '" target="_blank">' . esc_attr( $subscription_id ) . '</a></p>';
|
echo '<p><strong>' . esc_html__( 'Subscription:', 'woocommerce-paypal-payments' ) . '</strong> <a href="' . esc_url( $url ) . '" target="_blank">' . esc_attr( $subscription_id ) . '</a></p>';
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue