block.json
43 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "surecart/checkout-form", |
| 5 | "title": "Checkout Form", |
| 6 | "description": "Display a checkout form", |
| 7 | "category": "surecart", |
| 8 | "keywords": ["form", "checkout", "form"], |
| 9 | "textdomain": "surecart", |
| 10 | "supports": { |
| 11 | "reusable": false, |
| 12 | "html": false, |
| 13 | "multiple": false, |
| 14 | "align": ["wide", "full"] |
| 15 | }, |
| 16 | "attributes": { |
| 17 | "id": { |
| 18 | "type": "number" |
| 19 | }, |
| 20 | "title": { |
| 21 | "type": "string" |
| 22 | }, |
| 23 | "choices": { |
| 24 | "type": "array" |
| 25 | }, |
| 26 | "template": { |
| 27 | "type": "string" |
| 28 | }, |
| 29 | "choice_type": { |
| 30 | "type": "string", |
| 31 | "enum": ["all", "checkbox", "radio"], |
| 32 | "default": "all" |
| 33 | }, |
| 34 | "create_user_account": { |
| 35 | "type": "boolean", |
| 36 | "default": true |
| 37 | }, |
| 38 | "custom_success_url": { |
| 39 | "type": "string" |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 |