Skip to content

Commit 82742b2

Browse files
rafaelzaleskidiegocurbelolovo-hcesarcosta99Kristófer Reykjalín
authoredJan 5, 2022
Release/6.0.0 trunk update (#2264)
* Use node version from .nvmrc (#2221) * Use node version from .nvmrc * Use node versin from .nvmrc for linting * Reword "Stripe docs" to "Stripe plugin docs" (#2219) Rewording "Stripe docs" to "Stripe plugin docs" in order to avoid any confusion as to which documentation these links will navigate to. * Fix payment methods' capitalization (#2218) * Fix payment method names in sections: iDEAL, giropay, & Sofort Before, when managing WooCommerce payment methods, the section names of iDEAL, giropay, & Sofort were incorrectly capitalized. This fixes that and also updates the POT extension file so that the reference links are correct. * Fix payment method names in "Get started with Stripe" description Before, if one was not connected to Stripe, a card that allowed one to connect to Stripe would appear. In that card, a description was displayed where iDEAL and Sofort were not capitalized correctly. This fixes the capitalization of these payment methods. * Fix payment method names in admin notices: giropay, iDEAL, & Sofort Before, if a payment method was enabled but the incorrect currency was set, a notice would appear in the WooCommerce admin panel. These notices had payment method names with incorrect capitalization. This has now been fixed. * Fix payment method names in customer checkout: iDEAL, giropay, Sofort Before, when a customer was checking out with either iDEAL, giropay, or Sofort, an icon would appear but the icon's "alt" text had the payment method names incorrectly capitalized. This commit fixes that. * Fix payment method names in payments tab: iDEAL, giropay, & Sofort Before, when visiting the "Payments" tab of WooCommerce, the title of the tab would have the payment method names incorrectly capitalized. This commit fixes that. Also, the POT extension file's references were updated to point to the correct file-lines. And, log statements were updated to reflect the correct capitalization of the payment methods. * Fix Sofort's capitalization in invalid_sofort_country value Before, at checkout, if a non-supported country was selected for Sofort, a message indicating invalid country would appear but the capitalization was incorrect. This commit fixes that. * Fix payment method names in WC "Payments" tab: iDEAL, giropay, & Sofort Before, in WooCommerce (WC) "Payments" tab, the names of some payment methods were capitalized incorrectly. This commit fixes that. * Fix Sofort payment method name's capitalization in title and label Also, fix the corresponding tests. * Fix payment method names in WC "Payments" tab: iDEAL and Sofort Also, fix the capitalization of iDEAL in the tests file. * Fix payment method names in comments: iDEAL, giropay, Sofort Before, there was an inconsistency between the capitalization of the payment method names that were displayed to the user versus what was in the comments. This commit removes that inconsistency. * Fix payment method names in readme.txt: Sofort, iDEAL, & giropay This update fixes the capitalization of the payment methods: Sofort, iDEAL, and giropay in the readme.txt file. * Fix payment method names in the manual testing instructions Before, some of the payment methods (iDEAL, giropay, Sofort) were incorrectly capitalized in the plugin. So, the instructions were also incorrectly capitalized. But since these payment methods' names have been updated to reflect correct capitalization, these testing instructions also need to be updated in order to stay consistent. * Update changelog: Fixed capitalization for payment method names * Update changelog * Add webhook information to api key dialog (#2213) * Add additional tests for payment capture failure cases (#2215) * Add additional tests for payment capture failure cases * Fix error code for refunded order capture * Add tests for error codes * Fix phpcs warnings Co-authored-by: César Costa <[email protected]> * Fix fragile payment gateway names (#2230) * Use payment gateway label instead of array key, for gateway name Before, payment gateway names were retrieved from array keys. This made the code a bit fragile and required lowercasing the name for some use- cases. Now, a label property was added into WC_Stripe_Payment_Gateway class and that property is used to store the payment gateway name, instead. * Remove redundant lowercase call for UPE payment method names Before, payment method names were being lowercased, even though the name was already lowercase in all the respective payment method classes. * Reuse method_title property, as opposed to adding a label property Because the WC_Stripe_Payment_Gateway class already had a `method_title` property that has the name of the payment gateway, it was a bit redundant to add the `label` property. This commit removes the `label` property and reuses the `method_title` property, instead. This does mean that the payment method/gateway will read slightly different when UPE is enabled/disabled. See the following GH comment for more info: #2230 (comment) * chore: add listen npm script (#2236) * Redirect to settings tab after account is connected (#2226) * Change OAuth return URL for the settings page * Redirect to settings page after keys are added * Update changelog * Remove code to enable Stripe after OAuth connect * Correct the Stripe Account link URL on the Update Now Button (#2242) * Correct the Stripe Account link URL Fixes #2241 so that the link takes the customer to the Stripe Account page * Fix linting errors on index.js Fixed linting errors preventing #2242 from being merged * Add conditional before trying to add mask to CPF/CNPJ field (#2237) * added validation to prevent applying mask on non existent element when boleto is not active #2233 * added changelog entry #2233 * Show toast when payment methods list is updated (#2235) * Add selectors to help with account capabilities * Add filter to capability name * Update tests * Update changelog * Update translation instructions * Update pull request template (#2246) * fixed bug that would require customer to click on use new payment met… (#2216) * fixed bug that would require customer to click on use new payment method on pay order page when no payment card was saved #2163 * added changelog #2163 * change how the "Use new payment method" input is hidden on pay order #2163 * moved changelog entry to latest version * Prompt message when navigating out Stripe settings with unsaved changes (#2243) * Prompt message when navigating away with unsaved changes * Do not prompt message on navigation triggered by WooCommerce * Add changelog entries * Typo * Reset initial settings after form is saved * Update copy * Add missing changelog entries in readme.txt * Add a reference to the transpiled JS file in POT file reference comments (#2250) * Add wp-cli as dev dependency to composer * Generate hidden-source-maps during production build * Add the combine/update POT script from wc payments * Update package.json scripts to inlcude POT combination during build * Remove @wordpress/babel-plugin-makepot plugin from babel config * Tweaks in the connect account modal (#2245) * Disable autocomplete on account keys fields * Does not close the modal when keys are invalid * Refresh account before closing the modal * Disable autocomplete on webhook url field * Fix tests * Update changelog * Update version date * Update release date placeholder to 2022 * Update readme.txt * Product version bump update Co-authored-by: Diego Curbelo <[email protected]> Co-authored-by: Hector Lovo <[email protected]> Co-authored-by: César Costa <[email protected]> Co-authored-by: Kristófer Reykjalín <[email protected]> Co-authored-by: Brian Yu <[email protected]> Co-authored-by: Joash Rajin <[email protected]> Co-authored-by: leonardo lopes de albuquerque <[email protected]> Co-authored-by: Alfredo Sumaran <[email protected]>
1 parent b8a1d32 commit 82742b2

File tree

66 files changed

+5479
-3127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+5479
-3127
lines changed
 

‎.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Please follow the following guidelines when writing testing instructions:
4242
---
4343

4444
- [ ] Covered with tests (or have a good reason not to test in description ☝️)
45-
- [ ] Added changelog entry (or does not apply)
45+
- [ ] Added changelog entry **in both** `changelog.txt` and `readme.txt` (or does not apply)
4646
- [ ] Tested on mobile (or does not apply)
4747

4848
**Post merge**

‎.github/workflows/js-tests.yml

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
steps:
1111
# clone the repository
1212
- uses: actions/checkout@v2
13+
# use the node version defined in nvmrc
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version-file: '.nvmrc'
1317
# enable dependencies caching
1418
- uses: actions/cache@v2
1519
with:

0 commit comments

Comments
 (0)