Automattic / Automattic/jetpack
Enhancement: connect Form Block to Payment Block
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### What
It should be possible to integrate a Payment Block as a Form Block element, so that the Form Block could be used in contexts like paid event registration.
### Why
This is a behavior that customers already expect, based on interactions like 40933223-hc and 40960046-hc.
### How
The idea is to gate the Form Block submission to a Payment Block. I'm not sure what makes more sense:
- Clicking on "Submit" triggers a payment screen, or
- The "Submit" button is only enabled after the customer successfully completes a payment in a modal after clicking on the Payment Button.
Contributor guide
Research direction
Start by locating the Form Block and Payment Block entry points and reviewing how each currently handles submission and payment completion. Decide which interaction is supported, then verify that a paid form registration cannot submit before payment and that the chosen flow works in the relevant block contexts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, react, wordpress
- Domain
- frontend, payments
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100