Skip to content

Commit

Permalink
Merge branch 'develop' into merge/upe-non-upe-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Karimov committed Jan 3, 2024
2 parents 4d9bbb6 + b59d3d2 commit 678059d
Show file tree
Hide file tree
Showing 14 changed files with 1,152 additions and 987 deletions.
4 changes: 4 additions & 0 deletions changelog/add-prb-load-tracks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Track payment-request-button loads
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Not user-facing: fixes styling bug introduced in develop branch


4 changes: 4 additions & 0 deletions changelog/fix-trim-woopay-source-url
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Checkout error when page URL is too long
5 changes: 4 additions & 1 deletion client/checkout/woopay/email-input-iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ export const handleWooPayEmailInput = async (
);
urlParams.append( 'wcpayVersion', getConfig( 'wcpayVersionNumber' ) );
urlParams.append( 'is_blocks', isBlocksCheckout ? 'true' : 'false' );
urlParams.append( 'source_url', window.location.href );
urlParams.append(
'source_url',
wcSettings?.storePages?.checkout?.permalink
);
urlParams.append(
'viewport',
`${ viewportWidth }x${ viewportHeight }`
Expand Down
7 changes: 5 additions & 2 deletions client/components/woopay/save-user/checkout-page-save-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const CheckoutPageSaveUser = ( { isBlocksCheckout } ) => {
? {}
: {
save_user_in_woopay: isSaveDetailsChecked,
woopay_source_url: window.location.href,
woopay_source_url:
wcSettings?.storePages?.checkout?.permalink,
woopay_is_blocks: true,
woopay_viewport: `${ viewportWidth }x${ viewportHeight }`,
woopay_user_phone_field: {
Expand Down Expand Up @@ -291,7 +292,9 @@ const CheckoutPageSaveUser = ( { isBlocksCheckout } ) => {
<input
type="hidden"
name="woopay_source_url"
value={ window.location.href }
value={
wcSettings?.storePages?.checkout?.permalink
}
/>
<input
type="hidden"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,55 +20,61 @@ exports[`Order details page should match the snapshot - Charge without payment i
data-wp-component="CardBody"
>
<div
class="payment-details-summary"
class="components-flex css-175m5nr-View-Flex-sx-Base-sx-Items-ItemsRow em57xhy0"
data-wp-c16t="true"
data-wp-component="Flex"
>
<div
class="payment-details-summary__section"
class="payment-details-summary"
>
<p
class="payment-details-summary__amount"
>
$15.00
<span
class="payment-details-summary__amount-currency"
>
USD
</span>
<span
class="chip chip-light"
>
Pending
</span>
</p>
<div
class="payment-details-summary__breakdown"
class="payment-details-summary__section"
>
<p>
Fees:
-$0.00
</p>
<p>
Net:
<p
class="payment-details-summary__amount"
>
$15.00
<span
class="payment-details-summary__amount-currency"
>
USD
</span>
<span
class="chip chip-light"
>
Pending
</span>
</p>
<div
class="payment-details-summary__breakdown"
>
<p>
Fees:
-$0.00
</p>
<p>
Net:
$15.00
</p>
</div>
</div>
</div>
<div
class="payment-details-summary__section"
>
<div
class="payment-details-summary__id"
class="payment-details-summary__section"
>
Payment ID:
776
<div
class="payment-details-summary__id"
>
Payment ID:
776
</div>
</div>
</div>
<div
class="payment-details__refund-controls"
/>
</div>
<div
class="payment-details__refund-controls"
/>
</div>
<hr
aria-orientation="horizontal"
Expand Down
Loading

0 comments on commit 678059d

Please sign in to comment.