Skip to content

Commit

Permalink
Merge branch 'develop' into fix/improve-woopay-test-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
malithsen authored Nov 13, 2024
2 parents 9e8355e + 733734b commit 14bf32c
Show file tree
Hide file tree
Showing 306 changed files with 2,373 additions and 987 deletions.
6 changes: 3 additions & 3 deletions assets/css/success.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
align-items: center;
flex-wrap: wrap;
line-height: 1;
padding-top: 4px;
}

.wc-payment-gateway-method-logo-wrapper img {
margin-right: 0.5rem;
padding-top: 4px;
}

.wc-payment-gateway-method-logo-wrapper.wc-payment-bnpl-logo img {
max-height: 30px;
.wc-payment-gateway-method-logo-wrapper.wc-payment-lpm-logo img {
max-height: 26px;
}
6 changes: 3 additions & 3 deletions assets/css/success.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
align-items: center;
flex-wrap: wrap;
line-height: 1;
padding-top: 4px;
}

.wc-payment-gateway-method-logo-wrapper img {
margin-left: 0.5rem;
padding-top: 4px;
}

.wc-payment-gateway-method-logo-wrapper.wc-payment-bnpl-logo img {
max-height: 30px;
.wc-payment-gateway-method-logo-wrapper.wc-payment-lpm-logo img {
max-height: 26px;
}
5 changes: 5 additions & 0 deletions changelog/add-9673-payouts-rename-notice
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: add
Comment: Added notice to indicate the rename of Deposits to Payouts. User facing changelog will be added as part of feature branch


4 changes: 4 additions & 0 deletions changelog/add-country-specific-test-cards
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Add country-specific test card numbers for credit card testing
4 changes: 4 additions & 0 deletions changelog/add-ipp-missing-failure-webhooks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Resolved issue with terminal payments in the payment intent failed webhook processing.
5 changes: 5 additions & 0 deletions changelog/dev-1-9601-rename-deposit-dev-docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: Rename 'deposit' to 'payout' within the developer doc description texts. The change is a part of a larger renaming project.


4 changes: 4 additions & 0 deletions changelog/dev-update-pw-screenshots
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Update snapshots for E2E Playwright screenshots
4 changes: 4 additions & 0 deletions changelog/feature-deposits-payouts-rename
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: update

Rename 'deposit' to 'payout' across various places in the WooPayments admin UI, docs and doc URLs.
4 changes: 4 additions & 0 deletions changelog/fix-7802-deposit-withdrawal-text-changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Use 'Withdrawal' and 'Deducted' labels when referring to withdrawal deposits, to more accurately communicate the type of transaction that has occurred
4 changes: 4 additions & 0 deletions changelog/fix-8254-bnpl-pay-for-order
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

BNPL methods now work properly in Pay for Order when they are available. Default values are also provided when available.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Include missing scripts that handle refunds for non credit card payments in the order details page.
5 changes: 5 additions & 0 deletions changelog/fix-9525-menu-url-payouts-rename
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: Part of feature Renaming deposits to payouts


5 changes: 5 additions & 0 deletions changelog/fix-9527-payouts-rename-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: Payouts rename: Settings page, part of a larger change


5 changes: 5 additions & 0 deletions changelog/fix-9542-rename-payouts-instant-depost-modal-flow
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: Part of a larger change - renaming deposit to payout; this PR fixes instant payout modal + button


5 changes: 5 additions & 0 deletions changelog/fix-9573-rename-payout-tos-modal
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: Rename Deposit to Payout in TOS modal. Changelog to be included in featture branch


5 changes: 5 additions & 0 deletions changelog/fix-9585-rename-instant-payouts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: Renamed instant deposit to instant payout. Main changelog will be part of feature branch


5 changes: 5 additions & 0 deletions changelog/fix-9588-rename-payouts-error-messages
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: Updated the payouts component error notices. User facing changelog will be on the feature branch.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update

When tracking is enabled, send a tracks event when the merchant is redirected to a Stripe Capital offer.

5 changes: 5 additions & 0 deletions changelog/fix-9676-multi-currency-autoload
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Keep multi-currency module in the same path to avoid autoload errors.


5 changes: 5 additions & 0 deletions changelog/fix-9700-payout-spotlight-illustration
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Update the spotlight notice illustration for 'deposit' to 'payout' rename announcement.


4 changes: 4 additions & 0 deletions changelog/fix-deprecated-message-on-empty-pmme
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

fix: E_DEPRECATED on BNPL empty PMME
5 changes: 5 additions & 0 deletions changelog/fix-dev-constructor-descriptions
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: chore: updated BNPL constructor descriptions.


5 changes: 5 additions & 0 deletions changelog/fix-e2e-test-8.5.0-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Update string in E2E test - `Deposit` to `Payout`


5 changes: 5 additions & 0 deletions changelog/fix-payout-rename-account-errors
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: Renamed deposit to Payout in account error messages. Main changelog will be added on feature branch.


4 changes: 4 additions & 0 deletions changelog/fix-saving-duplicate-3ds-cards
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Fix duplicate saving of 3DS card entry after checkout
5 changes: 5 additions & 0 deletions changelog/fix-stripe-connect-breaks-underscore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Change the way we load an external lib to avoid issues with underscore.


5 changes: 5 additions & 0 deletions changelog/update-9524-deposit-payout-deposits-list
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: Change deposit to payout in deposits list page.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: Update 'deposit' to 'payout' in UI labels of the transaction list. This PR is a part of a project doing this rename across all parts of the UI.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: Part of a larger change to change 'deposit' to 'payout'. This PR specificially changes it for the transaction details timeline.


5 changes: 5 additions & 0 deletions changelog/update-9578-79-rename-deposit-overview-modal
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: Rename 'deposit' to 'payout' in modals within 'Overview' section. PR is a part of a larger renaming project.


5 changes: 5 additions & 0 deletions changelog/update-9581-rename-deposit-onboarding-tasklist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: Rename 'deposit' to 'payout' within the onboarding tasklist section. The change is a part of a larger project of doing this rename across the codebase.


5 changes: 5 additions & 0 deletions changelog/update-9587-doc-url-payout-rename
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: Update 'deposit' to 'payout' in URLs of WooPayments docs occuring across the codebase. Part of a larger renaming project.


5 changes: 5 additions & 0 deletions changelog/update-9600-readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: No need changelog entry for this change as there has been one that encapsulate all the payout rename changes.


4 changes: 4 additions & 0 deletions changelog/update-order-success-lpm-icon
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

update: show LPM payment method icon on order success page
4 changes: 4 additions & 0 deletions changelog/update-payment-method-test-mode-label
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

update: payment method "test mode" label at checkout to be displayed only when payment method is selected
8 changes: 5 additions & 3 deletions client/checkout/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ export default class WCPayAPI {
* and displays the intent confirmation modal (if needed).
*
* @param {string} redirectUrl The redirect URL, returned from the server.
* @param {string} paymentMethodToSave The ID of a Payment Method if it should be saved (optional).
* @param {boolean} shouldSavePaymentMethod Whether the payment method should be saved.
* @return {Promise<string>|boolean} A redirect URL on success, or `true` if no confirmation is needed.
*/
confirmIntent( redirectUrl, paymentMethodToSave ) {
confirmIntent( redirectUrl, shouldSavePaymentMethod = false ) {
const partials = redirectUrl.match(
/#wcpay-confirm-(pi|si):(.+):(.+):(.+)$/
);
Expand Down Expand Up @@ -219,7 +219,9 @@ export default class WCPayAPI {
// order status call works when a guest user creates an account during checkout.
_ajax_nonce: nonce,
intent_id: intentId,
payment_method_id: paymentMethodToSave || null,
should_save_payment_method: shouldSavePaymentMethod
? 'true'
: 'false',
} );

return [ ajaxCall, result.error ];
Expand Down
4 changes: 2 additions & 2 deletions client/checkout/blocks/confirm-card-payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export default async function confirmCardPayment(
emitResponse,
shouldSavePayment
) {
const { redirect, payment_method: paymentMethod } = paymentDetails;
const { redirect } = paymentDetails;

try {
const confirmationRequest = api.confirmIntent(
redirect,
shouldSavePayment ? paymentMethod : null
shouldSavePayment
);

// `true` means there is no intent to confirm.
Expand Down
5 changes: 4 additions & 1 deletion client/checkout/blocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ Object.entries( enabledPaymentMethodsConfig )
label: (
<PaymentMethodLabel
api={ api }
upeConfig={ upeConfig }
title={ upeConfig.title }
countries={ upeConfig.countries }
iconLight={ upeConfig.icon }
iconDark={ upeConfig.darkIcon }
upeName={ upeName }
upeAppearanceTheme={ upeAppearanceTheme }
/>
Expand Down
Loading

0 comments on commit 14bf32c

Please sign in to comment.