Commit graph

256 commits

Author SHA1 Message Date
Alex P
5e520ebb49
Fix disable-funding field access
Fixed usage of the `disabled-funding` field usage because It can be missing, it is added only if there are disabled funding sources.
2023-11-30 08:39:08 +02:00
Alex P
de1ab5b7bf
Add addition Place Order description in block 2023-11-29 17:01:55 +02:00
Alex P
b0ef0649bb
Improve fallback to shipping address when no billing 2023-11-29 11:59:32 +02:00
Alex P
dc2c60a6f2
Do not fail when cannot fill form in block continuation 2023-11-29 11:58:41 +02:00
Alex P
9038119618
Fix block editing 2023-11-24 09:56:52 +02:00
Alex P
758bb5da29
Add place order method in block together with express 2023-11-23 09:59:14 +02:00
Alex P
ea35893a82
Fix method id check 2023-11-23 08:46:48 +02:00
Alex P
b014403031
Register/render each express button separately 2023-11-22 17:19:08 +02:00
Alex P
f232946afa
Replace place order text in block 2023-11-16 16:01:32 +02:00
Alex P
3672c5a651
Do not load paypal sdk for continuation in block 2023-11-15 09:46:15 +02:00
Alex P
33ed474ae1
Support place order button mode in block 2023-11-15 09:45:15 +02:00
Alex P
7f072be611
Fix address merge 2023-10-27 09:59:55 +03:00
Alex P
14f54e1df1
Default to wc data when filling checkout 2023-10-24 10:22:55 +03:00
Alex P
539e211e6b
Fill form when continuation in block 2023-10-23 20:59:49 +03:00
Alex P
f13fc1d987
Redirect to continuation on block server error 2023-10-19 16:56:07 +03:00
Alex P
bb92792420
Update deprecated event name 2023-10-19 15:55:57 +03:00
Alex P
9059ef7f25
Fill form locally before submit when no-review mode 2023-10-12 10:18:58 +03:00
Alex P
18f8b83b61
Fix failed validation response
the 2nd check seems to not needed now
2023-10-11 10:43:33 +03:00
Alex P
613665f43e
Revert "check validation before submit", also check in onPaymentSetup 2023-10-11 10:10:45 +03:00
Alex P
47ad89bab9
Check validation errors before submit in block 2023-09-25 15:31:38 +03:00
Alex P
099b50728e
Remove unused 2023-09-25 09:52:53 +03:00
Alex P
d86b315229
Merge branch 'trunk' into PCP-1874-block-validation 2023-09-21 08:12:51 +03:00
Pedro Silva
c6379ca980
Refactor GooglePay contect handlers to reuse action handlers. 2023-09-06 17:54:08 +01:00
Pedro Silva
4a1d369ad2
Add GooglePay context handler classes 2023-08-28 17:19:07 +01:00
Alex P
08fb1d3350
Check validation errors when submitting in block 2023-07-21 10:49:50 +03:00
Alex P
d83eace9b8
Show buttons in block editing 2023-07-11 09:15:36 +03:00
Alex P
508fe0ee48
Do not sent order in approve response 2023-05-31 16:15:19 +03:00
Alex P
f1c91d5508
Fix type
Sometimes this service returns DisabledSmartButton
2023-05-24 09:36:36 +03:00
Alex P
2df970a74a
Handle payment errors in blocks 2023-05-22 10:38:31 +03:00
dependabot[bot]
0488670bf2
Bump json5 from 2.2.1 to 2.2.3 in /modules/ppcp-blocks
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-17 11:04:20 +00:00
dependabot[bot]
6db83fdd5a
Bump webpack from 5.75.0 to 5.76.0 in /modules/ppcp-blocks
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-17 10:55:41 +00:00
Alex P
703bedf810
Update final review checkbox 2023-05-08 15:04:25 +03:00
Alex P
694aafd346
Use "Pay now" label only if no review 2023-04-27 12:49:26 +03:00
Alex P
885d7cab19
Fix checkout address update
Looks like update* only sends to server, and set* fills UI without immediately sending to the server
2023-04-27 09:31:31 +03:00
Alex P
efb86acb1f
Handle shipping address/methods update 2023-04-27 09:06:38 +03:00
Alex P
47d6933288
Replace no final review alert with description 2023-04-25 16:16:37 +03:00
Alex P
9d638a57e3
Show shipping methods in paypal if express without review 2023-04-25 15:06:24 +03:00
Alex P
8efa0e6da3
Fix pay now button
not sure if the action parameter in order creation request affects anything, but the docs say that it should match the js sdk commit parameter
2023-04-24 08:15:22 +03:00
Alex P
37959ad2d8
Handle final review option 2023-04-24 08:12:48 +03:00
Alex P
57414cff9f
Fix request params 2023-04-22 13:16:42 +03:00
Alex P
98f6d0de45
Save funding source for block orders 2023-04-21 16:39:59 +03:00
Alex P
29e1b0cbd0
Show notice if cannot init blocks 2023-04-19 11:20:11 +03:00
Alex P
f435796cbe
Add final review checkbox 2023-04-18 23:34:29 +03:00
Alex P
0d8f86eefa
Fix block cart continuation 2023-04-17 17:15:37 +03:00
Alex P
211c57b938
Add final review for blocks 2023-04-17 10:23:52 +03:00
Alex P
493933a1c1
Handle continuation mode in blocks 2023-04-07 15:58:59 +03:00
Alex P
ccb5391d81
Allow pay later button in block 2023-04-05 17:55:58 +03:00
Alex P
bfaf05a96e
Add locations for block, do not load non-block scripts on block pages 2023-03-29 20:15:42 +03:00
Alex P
21bba80f49
Check the current method in block 2023-03-27 10:59:08 +03:00
Alex P
5261484f11
Use react component from the standard sdk 2023-03-24 10:11:53 +02:00