block.json
65 lines
| 1 | { |
| 2 | "name": "surecart/form", |
| 3 | "title": "Form", |
| 4 | "apiVersion": 3, |
| 5 | "description": "Displays a form.", |
| 6 | "category": "surecart", |
| 7 | "parent": ["surecart/checkout-form"], |
| 8 | "keywords": ["email", "mail"], |
| 9 | "textdomain": "surecart", |
| 10 | "supports": { |
| 11 | "reusable": false, |
| 12 | "html": false |
| 13 | }, |
| 14 | "script": "surecart-components", |
| 15 | "editorStyle": "surecart-themes-default", |
| 16 | "attributes": { |
| 17 | "mode": { |
| 18 | "type": "string", |
| 19 | "enum": ["test", "live"], |
| 20 | "default": "live" |
| 21 | }, |
| 22 | "success_url": { |
| 23 | "type": "string" |
| 24 | }, |
| 25 | "prices": { |
| 26 | "type": "array" |
| 27 | }, |
| 28 | "gap": { |
| 29 | "type": "string", |
| 30 | "default": "25px" |
| 31 | }, |
| 32 | "currency": { |
| 33 | "type": "string" |
| 34 | }, |
| 35 | "color": { |
| 36 | "type": "string" |
| 37 | }, |
| 38 | "loading_text": { |
| 39 | "type": "object", |
| 40 | "default": { |
| 41 | "finalizing": "Submitting...", |
| 42 | "paying": "Processing...", |
| 43 | "confirming": "Finalizing...", |
| 44 | "confirmed": "Success!", |
| 45 | "redirecting": "Success! Redirecting..." |
| 46 | } |
| 47 | }, |
| 48 | "success_text": { |
| 49 | "type": "object", |
| 50 | "default": { |
| 51 | "title": "Thank you!", |
| 52 | "description": "Your payment was successful. A receipt is on its way to your inbox.", |
| 53 | "button": "Continue" |
| 54 | } |
| 55 | }, |
| 56 | "persist_cart": { |
| 57 | "type": "string", |
| 58 | "default": "url" |
| 59 | } |
| 60 | }, |
| 61 | "providesContext": { |
| 62 | "surecart/form/mode": "mode" |
| 63 | } |
| 64 | } |
| 65 |