Philipp Stracker
60ab51a2f8
🎨 Slightly simplify JS return value
2025-03-04 17:14:07 +01:00
Philipp Stracker
2e298cee3e
🎨 Major code style cleanup, no functional changes
...
Make code more readable and maintainable
2025-03-04 15:24:28 +01:00
Philipp Stracker
4abdf880e6
✨ Extend ThreeDSecure class for use by GooglePay
2025-03-04 15:21:41 +01:00
Philipp Stracker
3083d89173
🔥 Remove the GetOrderEndpoint logic
...
We don’t need this endpoint, as orders are processed on server side
2025-03-04 14:41:47 +01:00
Philipp Stracker
c403f4beca
🔥 Remove unused BaseHandler methods
2025-03-04 14:39:06 +01:00
Philipp Stracker
ff40717c69
🎨 Add missing semicolon
2025-03-04 14:38:50 +01:00
Philipp Stracker
c1a3ff4814
🔥 Clean up GooglepoayButton
2025-03-04 14:38:37 +01:00
Philipp Stracker
ea23cf743a
⏪ ️ Remove unnecessary endpoint, restore URL
...
Those changes are not relevant for 3DS integration
2025-03-03 19:00:41 +01:00
Philipp Stracker
b85d1a5806
👔 Add initial 3DS status parsing logic
2025-03-03 18:59:50 +01:00
Philipp Stracker
2591cf444e
♻️ Fix the GetOrderEndpoint handler
...
We use the new `::raw_order()` method to return the plain object. The `Order` object could not be serialized in a meaningful way.
2025-03-03 18:21:39 +01:00
Philipp Stracker
4f4905af96
✨ Add new “OrderEndpoint::raw_order()” getter
...
Allows developers to decide if they want an `Order` class for internal usage, or an untyped `stdClass` for ajax responses.
2025-03-03 18:09:30 +01:00
Philipp Stracker
3e2a1f347f
♻️ Make the final server-side approval conditional
...
With 3DS the final approval should only fire when the 3DS process was successful. Note that we still need to implement a check to confirm the verification via API
2025-03-03 17:25:55 +01:00
Philipp Stracker
7b579bfc9b
♻️ Simplify the payment flow before order approval
2025-03-03 16:51:26 +01:00
carmenmaymo
ca76d33aa3
Use capture for 3ds in google
2025-03-03 15:34:45 +01:00
carmenmaymo
d66a7521f5
Merge branch 'refs/heads/trunk' into PCP-4156-implement-3ds-for-google-pay
2025-03-03 09:51:20 +01:00
Emili Castells
c479a0b3cd
Merge pull request #3173 from woocommerce/PCP-4269-do-not-execute-mapping-logic-if-new-settings-ui-module-is-disabled
...
Disable the mapping If the new settings module is not enabled (4269)
2025-02-28 16:59:47 +01:00
Narek Zakarian
7dc2fef1da
If the new settings module is not enabled, return null
...
This will force the `Settings` old class to always fallback to the old settings value
2025-02-28 19:48:03 +04:00
Narek Zakarian
c8d9a142ea
Pass a boolean to the map to check if the new settings module is enabled
2025-02-28 19:47:03 +04:00
Narek Zakarian
e06ea0036f
Fix the new settings module enabled logic.
...
instead of `$preview_new_ux = '0' !== getenv( 'PCP_SETTINGS_ENABLED' );` we should use `$preview_new_ux = '1' === getenv( 'PCP_SETTINGS_ENABLED' );` becuase the module will be always enabled unless you set `PCP_SETTINGS_ENABLED = '0'` but by default the `PCP_SETTINGS_ENABLED` is `false` because it doesn’t exist.
2025-02-28 19:46:31 +04:00
Emili Castells
4e000e2ae9
Merge pull request #3167 from woocommerce/PCP-4261-uncheck-item-when-disabled-for-payment-methods
...
Do not render the button when it is disabled from Payment Methods (4261)
2025-02-28 15:18:49 +01:00
Narek Zakarian
0405307811
Add Psalm stubs for doing_filter
& did_filter
2025-02-28 17:47:17 +04:00
Narek Zakarian
cf30631c19
Fix the tests
2025-02-28 16:24:41 +04:00
Narek Zakarian
88c0ce6ee3
Fix the tests
2025-02-28 16:10:22 +04:00
Narek Zakarian
860372fb7c
Use the constants from the gateways instead of hard-coding the names
2025-02-28 15:53:32 +04:00
Narek Zakarian
d83b57b887
Check if the button is enabled before rendering on block pages
2025-02-28 15:51:39 +04:00
Narek Zakarian
c38338f05d
just return true when is the old settings
2025-02-28 15:50:31 +04:00
Narek Zakarian
ca870ecf6f
Use the Payment setting model to check if the gateway is enabled.
...
Once the new settings module is permanently enabled, this model can be passed as a dependency to the styling helper class. For now, we must pass it this way to avoid errors when the new settings module is disabled.
2025-02-28 15:49:42 +04:00
Emili Castells
63c38c1167
Merge pull request #3043 from woocommerce/PCP-3904-show-new-settings-ui-to-new-merchants-only
...
Show new settings UI to new merchants only (3904)
2025-02-28 11:47:09 +01:00
Emili Castells
ae2bbeb3ae
Merge pull request #3168 from woocommerce/PCP-4246-seller-country-empty-string-when-onboarding-with-app-credentials
...
Seller country empty string when onboarding with app credentials (4246)
2025-02-27 17:44:31 +01:00
Philipp Stracker
db3fa08e7e
✨ Add a fallback value for the merchant country
2025-02-27 17:21:07 +01:00
Philipp Stracker
a1cbabf84c
🎨 Slightly improve code structure
2025-02-27 17:13:09 +01:00
Philipp Stracker
39394e864a
✨ Finish new REST endpoint to provide real country
2025-02-27 17:11:39 +01:00
Narek Zakarian
447666f9e0
Use the Payment setting model to check if the gateway is enabled.
...
Once the new settings module is permanently enabled, this model can be passed as a dependency to the styling helper class. For now, we must pass it this way to avoid errors when the new settings module is disabled.
2025-02-27 19:26:42 +04:00
Philipp Stracker
61323d5cc5
♻️ Rename the main REST service method
2025-02-27 16:13:23 +01:00
Philipp Stracker
7ac0a4f62b
🔒 ️ Use WP authentication cookies for REST calls
2025-02-27 16:13:05 +01:00
Philipp Stracker
ffbe9c08d5
🔊 Add logging to the internal REST service
2025-02-27 16:08:55 +01:00
Narek Zakarian
e913f60885
Use the Payment setting model to check if the venmo gateway is enabled.
...
Once the new settings module is permanently enabled, this model can be passed as a dependency to the styling helper class. For now, we must pass it this way to avoid errors when the new settings module is disabled.
2025-02-27 18:33:48 +04:00
Narek Zakarian
b74cfba72b
Pass the PaymentSettings model instance to styling helper.
...
Once the new settings module is permanently enabled, this model can be passed as a dependency to the styling helper class. For now, we must pass it this way to avoid errors when the new settings module is disabled.
2025-02-27 18:18:37 +04:00
Narek Zakarian
e83dba1506
Pass the PaymentSettings model instance.
...
We need to pass the PaymentSettings model instance to use it in some helpers. Once the new settings module is permanently enabled, this model can be passed as a dependency to the appropriate helper classes. For now, we must pass it this way to avoid errors when the new settings module is disabled.
2025-02-27 18:17:37 +04:00
Emili Castells
e2d6ccfb0b
Merge pull request #3159 from woocommerce/PCP-4130-hardcoded-flags-in-welcome-docs-component
...
Hardcoded flags in WelcomeDocs component (4130)
2025-02-27 12:54:18 +01:00
Emili Castells Guasch
aea44dc3f8
Fix typo
2025-02-27 12:54:04 +01:00
Emili Castells
59524bbe71
Merge pull request #3162 from woocommerce/PCP-4252-subscriptions-product-without-reference-transactions-but-with-acdc
...
Subscriptions product without reference transactions but with ACDC (4252)
2025-02-27 12:50:12 +01:00
Philipp Stracker
57ee70acba
🔀 Merge branch 'trunk'
2025-02-27 11:33:30 +01:00
Emili Castells
22c6b235ef
Merge pull request #3166 from woocommerce/PCP-4223-onboarding-fails-in-some-browsers
...
Onboarding fails in some browsers (4223)
2025-02-27 11:21:00 +01:00
Emili Castells
4ca46e1b75
Merge pull request #3161 from woocommerce/PCP-4260-google-and-apple-pay-buttons
...
Fix the naming of google and apple pay buttons mapping (4260)
2025-02-27 11:15:12 +01:00
carmenmaymo
cbf953b09e
Remove target PPFrame
2025-02-27 10:14:17 +01:00
Philipp Stracker
021a4b3de7
✨ Enable 3DS check for Google Pay
...
This change finally triggers a `PAYER_ACTION_REQUIRED` status response during checkout.
2025-02-26 18:58:27 +01:00
Philipp Stracker
dc90a73f81
👔 Add short delay before redirecting
2025-02-26 18:23:49 +01:00
Philipp Stracker
12b5fe8082
♻️ Embed a function that’s only locally used
2025-02-26 18:09:20 +01:00
Philipp Stracker
5a5074df8c
♻️ Flatten processPayment to functon body
...
This makes the flow easier to understand and debug
2025-02-26 18:01:39 +01:00