Commit graph

167 commits

Author SHA1 Message Date
Philipp Stracker
e95321cf82
🐛 Fix incorrect validation rule 2024-10-09 14:04:21 +02:00
Philipp Stracker
f41fa4f951
Streamline button configuraton validation logic 2024-10-08 18:47:32 +02:00
Daniel Dudzic
e76c8b257b
Rename the new script loading script 2024-10-08 00:41:30 +02:00
Daniel Dudzic
869a47f3cd
Migrate Google Pay to the new script loader 2024-10-07 15:30:27 +02:00
Emili Castells
b4b574db99
Merge pull request #2636 from woocommerce/PCP-3696-google-pay-has-no-amount
Fix the "0.00" amount in Google Pay for virtual products (3696)
2024-10-04 15:15:30 +02:00
Emili Castells
14b231ae1e
Merge pull request #2661 from woocommerce/PCP-3665-fix-gpay-preview
Fix Google Pay preview config and style
2024-10-03 14:33:01 +02:00
Emili Castells
407eff51f1
Merge pull request #2631 from woocommerce/PCP-3661-improve-context-detection-in-ajax
Improve context detection
2024-10-03 10:43:13 +02:00
Emili Castells
8592213b9a
Merge pull request #2464 from woocommerce/PCP-3374-google-pay-button-not-displayed-in-the-word-press-editor
Fix the Google Pay button in the block Checkout in the editor (3374)
2024-10-03 10:39:01 +02:00
Alex P.
ff18fa7b7f
Fix lint 2024-10-02 17:41:54 +03:00
Alex P.
c794ad20e9
Fix Google Pay preview config and style 2024-10-01 09:16:39 +03:00
Alex P.
f3bac3c51f
Remove unused class 2024-10-01 09:15:16 +03:00
Alex P.
f0e2ca2b5b
Remove continuation context 2024-09-23 09:10:49 +03:00
Emili Castells Guasch
b8a7a533c2 Merge branch 'trunk' into update/add-title-description-and-gateway 2024-09-20 15:26:48 +02:00
Philipp Stracker
643a23c6e0
🐛 Fix the 0-amount bug
When shipping is disabled, the shippingFee is `undefined` which also resulted in the amount to become `NaN`
2024-09-18 17:34:20 +02:00
Philipp Stracker
368ad49d16
🎨 Minor changes in comment linebreaks 2024-09-18 17:33:27 +02:00
Philipp Stracker
c3d53853de
Merge pull request #2513 from woocommerce/PCP-3527-google-pay-shipping-callback-not-calculating-totals-correctly-on-single-product-page
Google Pay: Shipping callback not calculating totals correctly on Single Product page (3527)
2024-09-06 15:42:51 +02:00
Philipp Stracker
a665529b78
🔀 Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-googlepay/resources/js/GooglepayButton.js
2024-09-06 15:35:27 +02:00
Philipp Stracker
a128228c86
🔀 Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-applepay/resources/js/ApplepayButton.js
#	modules/ppcp-applepay/resources/js/boot-admin.js
#	modules/ppcp-button/resources/js/modules/Preview/PreviewButtonManager.js
#	modules/ppcp-googlepay/resources/js/GooglepayButton.js
#	modules/ppcp-googlepay/resources/js/boot-admin.js
2024-09-06 15:19:17 +02:00
Alex Florisca
32aec9a3dd Add text domain to translation string 2024-09-04 14:57:41 +01:00
Alex Florisca
08f975216d Fix import 2024-09-04 12:53:22 +01:00
Alex Florisca
2e974488f0 Add title, description and gatewayId to express payment 2024-09-04 12:27:22 +01:00
Philipp Stracker
b3a05ae3d8
🐛 Fix bug with defaultShippingId 2024-09-04 12:02:23 +02:00
Philipp Stracker
813f24da1c
💡 Update comment 2024-08-27 12:46:15 +02:00
Philipp Stracker
5b05458103
♻️ Decouple init logic from global PPCP config
Allow Google Pay logic to initialize on pages that do not provide a global PayPalCommerceGateway object. Required to use CheckoutBootstrap to popuplate billing fields in continuation mode.
2024-08-27 12:34:50 +02:00
Philipp Stracker
a467533ba6
🐛 Sync WC shipping details with Google Pay
This change keeps the checkout & cart forms in-sync with the Google Pay form, to ensure the form submits the same details that the user can see inside Google Pay
2024-08-26 17:10:51 +02:00
Philipp Stracker
b4cd6bb121
🐛 Fix critical Google Pay error 2024-08-23 11:52:00 +02:00
Philipp Stracker
fe39793e9a
🔀 Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-googlepay/resources/js/GooglepayButton.js
2024-08-22 12:04:13 +02:00
Philipp Stracker
734951adcb
♻️ Minor cleanup 2024-08-21 14:21:45 +02:00
Philipp Stracker
eba92e6b81
Detect logged in customer in checkout module 2024-08-21 13:52:11 +02:00
Philipp Stracker
97379628d4
Send payer details with order approval request
First step to integrate payer details in the payment flow without final confirmation.
2024-08-20 15:37:26 +02:00
Philipp Stracker
c48c94e09d
New CheckoutBootstrap for GooglePay
This new module uses previously stored payer details to populate the checkout form on the classic checkout page.
2024-08-20 14:19:41 +02:00
Philipp Stracker
63b5055903
💡 Document payment workflow 2024-08-20 14:16:57 +02:00
Philipp Stracker
451dc842ed
New LocalStorage module for Google Pay 2024-08-20 13:47:00 +02:00
Philipp Stracker
cf83d2ba6e
🐛 Fix critical typo 2024-08-16 18:54:55 +02:00
Philipp Stracker
c007d7909c
Option to only set missing billing details 2024-08-16 18:45:49 +02:00
Philipp Stracker
63e9c8bf27
New ConsoleLogger group method
Groups subsequent console.log output, for cleaner console output
2024-08-16 18:15:59 +02:00
Philipp Stracker
00e2959700
Get payee details without shipping callback 2024-08-16 18:14:35 +02:00
Philipp Stracker
ac98600b8f
🔥 Simplify code, remove console output 2024-08-13 20:23:51 +02:00
Philipp Stracker
f2301a4674
🐛 Fix price calculation on pages with cart
This covers: Mini-Cart, Classic Cart, Block Cart, Classic Checkout, Block Checkout, Pay-Now page
2024-08-13 20:02:49 +02:00
Philipp Stracker
8f191c2d49
🐛 Fix the price calculation on product page 2024-08-13 19:36:37 +02:00
Philipp Stracker
179c1d6831
🔥 Minor clean-up 2024-08-13 19:34:13 +02:00
Philipp Stracker
3b92eaac81
Store shipping cost in the DTO 2024-08-13 19:31:51 +02:00
Philipp Stracker
611ab4c5a7
New TransactionInfo DTO 2024-08-13 18:53:39 +02:00
Philipp Stracker
7946150f5b
New TransactionInfo DTO 2024-08-13 18:41:42 +02:00
Philipp Stracker
6b5421a2b1
🐛 Include shipping costs in Google Pay dialog 2024-08-13 15:41:10 +02:00
Philipp Stracker
b37d8cf838
💡 Improve some code comments 2024-08-12 18:52:02 +02:00
Philipp Stracker
966b76102c
🐛 Fix init errors “No API configuration...”
Caused by calling `reinit()` before the invoking `init()` first. New condition in `reinit()` ensures that the button configuration is present.
2024-08-12 18:50:17 +02:00
Philipp Stracker
843403cbdc
🔊 Console error when button init fails 2024-08-12 17:38:43 +02:00
Philipp Stracker
6aad61f610
🐛 Fetch transaction details on button click
Fixes an issue with multiple payment buttons on one page, like Mini-Cart and Single Product
2024-08-09 16:23:44 +02:00
Philipp Stracker
7106413f87
🐛 Refresh total price when checkout form changes
Applies the selected shipping costs to the Google Payment button
2024-08-08 21:01:22 +02:00