Skip to content

Commit 28a5c49

Browse files
authored
Update links to plugin docs and Stripe docs (#3587)
* Update documentation links * Add changelog entries
1 parent 09bac72 commit 28a5c49

25 files changed

+60
-47
lines changed

changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Fix - Do not load express payment buttons on switch subscription page.
1212
* Fix - Return 'is_live' as true in account summary response when test mode is disabled in gateway settings and charge is enabled in Stripe account.
1313
* Fix - Prevents notices being displayed on WordPress 6.7 due to loading translations too early (only shown on stores with WP_DEBUG enabled).
14+
* Tweak - Update links to plugin documentation and Stripe documentation.
1415

1516
= 8.9.0 - 2024-11-14 =
1617
* Update - Enhance webhook processing to enable retrieving orders using payment_intent metadata.
@@ -1359,7 +1360,7 @@
13591360
* Add support for changing a subscription's recurring amount
13601361

13611362
= 1.5.0 - 2013-01-18 =
1362-
* Supports Stripe Checkout https://stripe.com/docs/checkout
1363+
* Supports Stripe Checkout https://docs.stripe.com/payments/checkout
13631364

13641365
= 1.4.0 - 2013-01-18 =
13651366
* WC 2.0 Compat

client/settings/payment-gateway-manager/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const gatewaysInfo = {
9292
'woocommerce-gateway-stripe'
9393
),
9494
guide:
95-
'https://stripe.com/docs/payments/payment-methods/overview#vouchers',
95+
'https://docs.stripe.com/payments/payment-methods/overview#vouchers',
9696
Fields: () => {
9797
const [
9898
gatewayExpiration,

client/settings/payment-settings/test-mode-checkbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const TestModeCheckbox = () => {
2626
components: {
2727
testCardNumbersLink: (
2828
// eslint-disable-next-line jsx-a11y/anchor-has-content
29-
<a href="https://stripe.com/docs/testing#cards" />
29+
<a href="https://docs.stripe.com/testing#cards" />
3030
),
3131
learnMoreLink: (
3232
// eslint-disable-next-line jsx-a11y/anchor-has-content

client/settings/payments-and-transactions-section/manual-capture-control.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { __ } from '@wordpress/i18n';
22
import styled from '@emotion/styled';
3+
import interpolateComponents from 'interpolate-components';
34
import React, { useContext, useState } from 'react';
45
import { CheckboxControl, Button } from '@wordpress/components';
56
import { Icon, info } from '@wordpress/icons';
@@ -72,10 +73,18 @@ const ManualCaptureControl = () => {
7273
'Issue an authorization on checkout, and capture later',
7374
'woocommerce-gateway-stripe'
7475
) }
75-
help={ __(
76-
'Charge must be captured on the order details screen within 7 days of authorization, otherwise the authorization and order will be canceled.',
77-
'woocommerce-gateway-stripe'
78-
) }
76+
help={ interpolateComponents( {
77+
mixedString: __(
78+
'Charge must be captured on the order details screen within 7 days of authorization, otherwise the authorization and order will be canceled. {{learnMoreLink}}Learn more{{/learnMoreLink}}',
79+
'woocommerce-gateway-stripe'
80+
),
81+
components: {
82+
learnMoreLink: (
83+
// eslint-disable-next-line jsx-a11y/anchor-has-content
84+
<a href="https://woocommerce.com/document/stripe/admin-experience/authorize-and-capture/" />
85+
),
86+
},
87+
} ) }
7988
/>
8089
{ isConfirmationModalOpen && (
8190
<ConfirmationModal

client/styles/upe/upe-styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// List of supported CSS properties accepted by UPE elements. Source: https://stripe.com/docs/stripe-js/payment-element#appearance.
1+
// List of supported CSS properties accepted by UPE elements. Source: https://docs.stripe.com/elements/appearance-api.
22
const paddingColorProps = [
33
'color',
44
'padding',

client/utils/use-payment-method-currencies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const accountCountry =
77

88
// When UPE is disabled returns the list of all the currencies supported by AliPay.
99
// When UPE is enabled returns the specific currencies AliPay supports for the corresponding Stripe account based on location.
10-
// Documentation: https://stripe.com/docs/payments/alipay#supported-currencies.
10+
// Documentation: https://docs.stripe.com/payments/alipay#supported-currencies.
1111
const getAliPayCurrencies = ( isUpeEnabled ) => {
1212
if ( ! isUpeEnabled ) {
1313
return [

docs/api/README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,26 @@ explains how payment gateways API is used to manage WooCommerce Stripe gateway.
88
Table of Contents
99
=================
1010

11-
* [Retrieve Stripe Payment Gateway](#retrieve-stripe-payment-gateway)
12-
* [Capability required](#capability-required)
13-
* [Request](#request)
14-
* [Response](#response)
15-
* [Notes](#notes)
16-
* [Update Stripe Payment Gateway](#update-stripe-payment-gateway)
17-
* [Capability required](#capability-required-1)
18-
* [Request](#request-1)
19-
* [Response](#response-1)
20-
* [Notes](#notes-1)
11+
- [REST API](#rest-api)
12+
- [Table of Contents](#table-of-contents)
13+
- [Retrieve Stripe Payment Gateway](#retrieve-stripe-payment-gateway)
14+
- [Capability required](#capability-required)
15+
- [Request](#request)
16+
- [Response](#response)
17+
- [Notes](#notes)
18+
- [Update Stripe Payment Gateway](#update-stripe-payment-gateway)
19+
- [Capability required](#capability-required-1)
20+
- [Request](#request-1)
21+
- [Response](#response-1)
22+
- [Notes](#notes-1)
2123

2224
## Retrieve Stripe Payment Gateway
2325

2426
### Capability required
2527

2628
* `manage_woocommerce`
2729

28-
### Request
30+
### Request
2931

3032
```
3133
GET /wp-json/wc/v2/payment_gateways/stripe
@@ -47,7 +49,7 @@ Status: 200 OK
4749
{
4850
"id": "stripe",
4951
"title": "Stripe",
50-
"description": "Pay with your credit card via Stripe. TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the documentation \"<a href=\"https://stripe.com/docs/testing\">Testing Stripe</a>\" for more card numbers.",
52+
"description": "Pay with your credit card via Stripe. TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the documentation \"<a href=\"https://docs.stripe.com/testing\">Testing Stripe</a>\" for more card numbers.",
5153
"order": 4,
5254
"enabled": true,
5355
"method_title": "Stripe",
@@ -216,7 +218,7 @@ Status: 200 OK
216218
### Notes
217219

218220
In WooCommerce Stripe 4.0.0, there will be multiple payment methods to support
219-
[Stripe Sources](https://stripe.com/docs/sources). For example, there will be
221+
[Stripe Sources](https://docs.stripe.com/sources). For example, there will be
220222
[`stripe_bancontact`](https://github.com/woocommerce/woocommerce-gateway-stripe/blob/3041f46f4b1b5d25b24be25767e0387f0cdf3f96/includes/payment-methods/class-wc-gateway-stripe-bancontact.php#L59) payment method
221223
in addition to `stripe` payment method. You can request `stripe_bancontact` with:
222224

@@ -266,7 +268,7 @@ curl -u consumer_key:consumer_secret -X PUT \
266268
{
267269
"id": "stripe",
268270
"title": "Stripe",
269-
"description": "Pay with your credit card via Stripe. TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the documentation \"<a href=\"https://stripe.com/docs/testing\">Testing Stripe</a>\" for more card numbers.",
271+
"description": "Pay with your credit card via Stripe. TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the documentation \"<a href=\"https://docs.stripe.com/testing\">Testing Stripe</a>\" for more card numbers.",
270272
"order": 4,
271273
"enabled": true,
272274
"method_title": "Stripe",

includes/abstracts/abstract-wc-stripe-payment-gateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ public function process_refund( $order_id, $amount = null, $reason = '' ) {
11051105
}
11061106

11071107
if ( $reason ) {
1108-
// Trim the refund reason to a max of 500 characters due to Stripe limits: https://stripe.com/docs/api/metadata.
1108+
// Trim the refund reason to a max of 500 characters due to Stripe limits: https://docs.stripe.com/api/metadata.
11091109
if ( strlen( $reason ) > 500 ) {
11101110
$reason = function_exists( 'mb_substr' ) ? mb_substr( $reason, 0, 450 ) : substr( $reason, 0, 450 );
11111111
// Add some explainer text indicating where to find the full refund reason.

includes/admin/class-wc-rest-stripe-tokens-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function register_routes() {
2222
register_rest_route(
2323
$this->namespace,
2424
// For more info on Stripe tokens, see the following:
25-
// https://stripe.com/docs/api/tokens/object
25+
// https://docs.stripe.com/api/tokens/object
2626
'/' . $this->rest_base . '/(?P<token_id>[a-z]{3}_[a-zA-Z0-9]{24})',
2727
[
2828
'methods' => WP_REST_Server::READABLE,

includes/admin/class-wc-stripe-admin-notices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function stripe_check_environment() {
149149
}
150150

151151
if ( empty( $show_3ds_notice ) && $three_d_secure ) {
152-
$url = 'https://stripe.com/docs/payments/3d-secure#three-ds-radar';
152+
$url = 'https://docs.stripe.com/payments/3d-secure/authentication-flow#three-ds-radar';
153153

154154
$message = sprintf(
155155
/* translators: 1) HTML anchor open tag 2) HTML anchor closing tag */

0 commit comments

Comments
 (0)