mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Merge branch 'trunk' into PCP-3949-changing-subscription-payment-method-to-acdc-results-in-an-error
This commit is contained in:
commit
f48418c6e9
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
import { registerPlugin } from '@wordpress/plugins';
|
||||
import { useEffect, useCallback, useState, useRef } from '@wordpress/element';
|
||||
import { useSelect } from '@wordpress/data';
|
||||
import { PAYMENT_STORE_KEY } from '@woocommerce/block-data';
|
||||
import PayPalInsights from '../../../../ppcp-axo/resources/js/Insights/PayPalInsights';
|
||||
import { STORE_NAME } from '../stores/axoStore';
|
||||
import usePayPalCommerceGateway from '../hooks/usePayPalCommerceGateway';
|
||||
|
@ -149,6 +148,7 @@ const usePaymentMethodTracking = ( axoConfig, eventTracking ) => {
|
|||
const isInitialMount = useRef( true );
|
||||
|
||||
const activePaymentMethod = useSelect( ( select ) => {
|
||||
const { PAYMENT_STORE_KEY } = window.wc.wcBlocksData;
|
||||
return select( PAYMENT_STORE_KEY )?.getActivePaymentMethod();
|
||||
}, [] );
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<svg width="42" height="14" viewBox="0 0 42 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0 -9.53674e-07V10.4722H2.43059V6.91664H3.58333C4.83339 6.91664 5.70838 6.54164 6.31948 5.91668C6.94444 5.27779 7.31944 4.41671 7.31944 3.45842C7.31944 2.50005 6.94444 1.63894 6.31948 1.00006C5.70838 0.37503 4.83339 -9.53674e-07 3.58333 -9.53674e-07H0ZM24.125 -9.53674e-07V10.4722H26.5556V6.91664H27.7083C28.9583 6.91664 29.8333 6.54164 30.4445 5.91668C31.0694 5.27779 31.4444 4.41671 31.4444 3.45842C31.4444 2.50005 31.0694 1.63894 30.4445 1.00006C29.8333 0.37503 28.9583 -9.53674e-07 27.7083 -9.53674e-07H24.125ZM39.6667 -9.53674e-07V10.4722H42V-9.53674e-07H39.6667ZM2.43059 2.1528H3.23613C3.88895 2.1528 4.20834 2.30553 4.44445 2.52778C4.68056 2.75003 4.81944 3.08336 4.81944 3.45842C4.81944 3.83341 4.68056 4.16668 4.44445 4.38885C4.20834 4.6111 3.88895 4.76384 3.23613 4.76384H2.43059V2.1528ZM26.5556 2.1528H27.3611C28.0139 2.1528 28.3333 2.30553 28.5694 2.52778C28.8055 2.75003 28.9444 3.08336 28.9444 3.45842C28.9444 3.83341 28.8055 4.16668 28.5694 4.38885C28.3333 4.6111 28.0139 4.76384 27.3611 4.76384H26.5556V2.1528ZM10.4722 3.30553C8.4861 3.30553 6.9583 4.93053 6.9583 7C6.9583 9.0694 8.4861 10.6945 10.4722 10.6945C11.2639 10.6945 11.9722 10.3889 12.4999 9.87498V10.4722H14.625V3.52784H12.4999V4.12502C11.9722 3.61116 11.2639 3.30553 10.4722 3.30553ZM34.5972 3.30553C32.6111 3.30553 31.0834 4.93053 31.0834 7C31.0834 9.0694 32.6111 10.6945 34.5972 10.6945C35.3889 10.6945 36.0973 10.3889 36.625 9.87498V10.4722H38.7499V3.52784H36.625V4.12502C36.0973 3.61116 35.3889 3.30553 34.5972 3.30553ZM15.1249 3.52784L18.3334 9.19443L15.9166 14H18.3888L23.625 3.52784H21.1528L19.5694 6.83337H19.5555L17.7639 3.52784H15.1249ZM10.8611 5.4167C11.7222 5.4167 12.3611 6.08335 12.3611 7C12.3611 7.91665 11.7222 8.5833 10.8611 8.5833C10 8.5833 9.3611 7.91665 9.3611 7C9.3611 6.08335 10 5.4167 10.8611 5.4167ZM34.9861 5.4167C35.8472 5.4167 36.4861 6.08335 36.4861 7C36.4861 7.91665 35.8472 8.5833 34.9861 8.5833C34.125 8.5833 33.4861 7.91665 33.4861 7C33.4861 6.08335 34.125 5.4167 34.9861 5.4167Z" fill="black"/>
|
||||
<svg height="24" width="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill="#002991" d="M38.914 13.35c0 5.574-5.144 12.15-12.927 12.15H18.49l-.368 2.322L16.373 39H7.056l5.605-36h15.095c5.083 0 9.082 2.833 10.555 6.77a9.687 9.687 0 0 1 .603 3.58z"/><path fill="#60CDFF" d="M44.284 23.7A12.894 12.894 0 0 1 31.53 34.5h-5.206L24.157 48H14.89l1.483-9 1.75-11.178.367-2.322h7.497c7.773 0 12.927-6.576 12.927-12.15 3.825 1.974 6.055 5.963 5.37 10.35z"/><path fill="#008CFF" d="M38.914 13.35C37.31 12.511 35.365 12 33.248 12h-12.64L18.49 25.5h7.497c7.773 0 12.927-6.576 12.927-12.15z"/>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 620 B |
Loading…
Add table
Add a link
Reference in a new issue