Commit graph

1674 commits

Author SHA1 Message Date
Emili Castells Guasch
efbd36025d Add card payment token for free trial subscriptions (WIP) 2024-07-24 16:00:55 +02:00
Philipp Stracker
eb216425fb
🚧 New Gateway for Apple Pay 2024-07-23 15:59:54 +02:00
Emili Castells Guasch
cf8eaba0a3 Run autofix code style 2024-07-23 14:36:22 +02:00
Emili Castells Guasch
2249ebd811 Show settings tabs in googlepay gateway settings page 2024-07-22 14:35:11 +02:00
George Burduli
a829c5b50d
Simplify Fastlane condition 2024-07-18 15:17:19 +04:00
George Burduli
7ed92c8fc2
Fix Fastlane condition 2024-07-18 15:10:15 +04:00
Philipp Stracker
c664a8308b
✏️ Fix incorrect <br> tags 2024-07-17 14:05:18 +02:00
George Burduli
a65d599ec9
Remove redundant 'else' condition 2024-07-17 13:01:11 +04:00
Emili Castells Guasch
895cd5c4c1 Return payment method if it exist 2024-07-16 16:00:11 +02:00
George Burduli
fc8b1dd6a6
Reformat 2024-07-16 15:58:16 +04:00
George Burduli
cb9785993f
Only display notice if Fastlane is disabled 2024-07-16 15:55:59 +04:00
George Burduli
e1a93b373d
Fix condition, translation instructions 2024-07-16 15:38:19 +04:00
George Burduli
5d429c75e0
Improve notice format and text 2024-07-16 15:36:18 +04:00
George Burduli
651549dbb0
Display notice if Checkout Blocks is not active 2024-07-16 15:10:09 +04:00
Philipp Stracker
07ec924c77
💄 Display the APM logo in dummy preview-buttons 2024-07-15 13:45:53 +02:00
Emili Castells
925480b665
Merge pull request #2409 from woocommerce/PCP-3360-wrong-string-in-smart-button-preview-on-standard-payments-tab
Wrong string in smart button preview on Standard Payments tab (3360)
2024-07-15 11:38:57 +02:00
Emili Castells Guasch
11105d913b Run eslint autofix 2024-07-12 12:58:34 +02:00
Philipp Stracker
a71a3dec5a
💬 Fix incorrect preview box title
Fix the wrong literal introduced here:
<d2f0cb1c31/modules/ppcp-wc-gateway/src/Settings/Fields/paypal-smart-button-fields.php (L31)>
2024-07-11 15:02:23 +02:00
George Burduli
59953ae58c
Remove redundant else condition 2024-07-10 18:08:46 +04:00
George Burduli
300804a738
Fix psalm error 2024-07-10 14:30:09 +04:00
George Burduli
49faab654a
Prevent enabling Standard Card Button when ACDC is enabled 2024-07-10 09:23:04 +04:00
Emili Castells Guasch
84f138a28d Move wc subscriptions support to ppcp-wc-subscriptions module and remove conditionals based on setting enabled 2024-07-05 16:21:16 +02:00
Emili Castells
da49ceefdb
Merge pull request #2371 from woocommerce/PCP-3286-pay-later-button-preview-are-missing
Pay Later button preview is missing (3286)
2024-07-04 09:29:07 +02:00
Philipp Stracker
964b9ac606
🔀 Merge branch 'trunk' 2024-07-03 11:05:43 +02:00
Emili Castells Guasch
ab02026816 Use wc_get_order to retrieve the order 2024-07-02 11:19:59 +02:00
Emili Castells
34245a852b
Merge pull request #2379 from woocommerce/PCP-3327-remove-giropay-references-due-to-deprecation
Remove Giropay references due to deprecation (3327)
2024-07-01 15:39:45 +02:00
Emili Castells
e7f2d33623
Merge pull request #2377 from woocommerce/PCP-3309-check-available-features-this-button-is-non-functional
Enable the gateway settings JS file on connection tab (3309)
2024-07-01 15:39:05 +02:00
Philipp Stracker
0197896500
🥅 Catch several JS/API related preview issues 2024-07-01 15:25:06 +02:00
Philipp Stracker
5307225ef3
🐞 Fix JS error during PayLater preview
Incorrect selector for `payLaterButtonPreview` caused the preview to fail when the “Enable Pay Later Button” was unchecked during page load.
2024-07-01 14:12:31 +02:00
Emili Castells Guasch
59d0ae943e Ensure purchase units payments is not null before usign it 2024-07-01 12:40:42 +02:00
Philipp Stracker
a1562ff0f3
🔥 Remove deprecated giropay reference 2024-06-28 18:36:38 +02:00
Narek Zakarian
034d21da6f
Enable the gateway settings JS file on connection tab. 2024-06-28 16:04:23 +04:00
Philipp Stracker
2e07b0f6c0
🚨 Fix reported CI error 2024-06-28 11:47:05 +02:00
Philipp Stracker
f606b87c85
💄 Complete rewrite of the preview box styling
Original styling designed for one use case (variable number of buttons, floating on the far right side).

Meanwhile we have multiple preview boxes, displaying, a fixed or variable amount of buttons; some preview boxes are also positioned inside a “frame” that requires custom padding and responsive checks.
2024-06-27 19:42:39 +02:00
Philipp Stracker
d2f0cb1c31
♻️ Consolidate preview-HTML in a new setting type 2024-06-27 18:01:06 +02:00
Philipp Stracker
4214821eb1
🔥 Remove unused dependencies
Left overs from PCP-3179
2024-06-25 16:40:05 +02:00
Philipp Stracker
f95bf333df
🐛 Load the preview button logic on Pay Later tab 2024-06-25 16:38:27 +02:00
Emili Castells
f5803f1c99
Merge pull request #2325 from woocommerce/PCP-3179-apple-pay-google-pay-buttons-no-longer-visible-in-standard-payments-button-previews-after-moving-them-to-advanced-card-processing-tab
Apple Pay & Google Pay buttons no longer visible in Standard Payments button previews after moving them to Advanced Card Processing tab (3179)
2024-06-17 09:30:47 +02:00
Emili Castells
3e6be85bb3
Merge pull request #2308 from woocommerce/PCP-223-gateway-description-not-translatable-with-wpml
Add WPML compatibility to the settings (223)
2024-06-14 14:56:54 +02:00
Philipp Stracker
238adedcad
🐛 Fix the condition to inject the settings JS
Switched to using an existing DI service to determine if the current page requires the “gateway-settings” asset files.
2024-06-13 11:35:05 +02:00
Philipp Stracker
c23129cb91
🐛 Render preview when enabling the button
Before this, the “is enabled” checkbox was not observed; enabling it did not cause a preview button to render, and required changing any other form field that was linked to the button

Also start to extract some logic to a new helper file.
2024-06-12 18:12:07 +02:00
Philipp Stracker
1f5caac2f1
🔀 Merge branch 'trunk' 2024-06-11 15:24:15 +02:00
Emili Castells Guasch
73bc86f9f5 Merge trunk 2024-06-11 10:52:10 +02:00
Philipp Stracker
cdc98159b8
🔥 Remove unused import 2024-06-10 16:12:53 +02:00
Philipp Stracker
ab0f25ffd7
🔀 Merge branch 'trunk' 2024-06-07 21:16:40 +02:00
Philipp Stracker
33c6c06e85
🐛 Fix button specific config-preparation 2024-06-07 15:42:16 +02:00
Philipp Stracker
c03f83f2e5
Add Google Pay preview button to ACP tab
Note: `phpcbf` adjusted tons of whitespace.
2024-06-07 12:28:49 +02:00
Emili Castells Guasch
8f86945059 Get purchase units from order when in pay for order context 2024-06-07 10:46:03 +02:00
Philipp Stracker
202f308850
🔀 Merge branch 'trunk' into PCP-3179-apple-pay-google-pay-buttons-no-longer-visible-in-standard-payments-button-previews-after-moving-them-to-advanced-card-processing-tab 2024-06-05 18:43:47 +02:00
Philipp Stracker
d69fb5bc70
🐛 Load button preview JS on ACDC settings page
Renamed the DI service name; this service is only used in two places (APM modules), which were also updated.
2024-06-05 18:05:06 +02:00