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