{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "suredonation/payment", "title": "Payment", "description": "Displays a SureDonation Payment Field", "category": "suredonation", "keywords": [ "payment", "stripe", "money", "charge", "billing" ], "textdomain": "suredonation", "supports": { "reusable": false, "html": false, "multiple": false }, "example": { "attributes": { "preview": true } }, "attributes": { "preview": { "type": "boolean", "default": false }, "block_id": { "type": "string" }, "required": { "type": "boolean", "default": true }, "fieldWidth": { "type": "number", "default": 100 }, "label": { "type": "string", "default": "Payment" }, "help": { "type": "string", "default": "" }, "errorMsg": { "type": "string", "default": "" }, "formId": { "type": "number", "default": 0 }, "slug": { "type": "string", "default": "" }, "paymentType": { "type": "string", "default": "one-time" }, "subscriptionPlan": { "type": "object", "default": { "name": "Subscription Plan", "interval": "month", "billingCycles": "ongoing" } }, "customerNameField": { "type": "string", "default": "" }, "customerEmailField": { "type": "string", "default": "" }, "customerPhoneField": { "type": "string", "default": "" }, "amountType": { "type": "string", "default": "fixed" }, "fixedAmount": { "type": "number", "default": 10 }, "minimumAmount": { "type": "number", "default": 0 }, "amountLabel": { "type": "string", "default": "Enter Amount" }, "variableAmountField": { "type": "string", "default": "" }, "oneTimeLabel": { "type": "string", "default": "One-Time Payment" }, "subscriptionLabel": { "type": "string", "default": "Subscription" }, "defaultPaymentChoice": { "type": "string", "default": "one-time" }, "recurringToggleLabel": { "type": "string", "default": "Make this a recurring donation" }, "oneTimeAmountType": { "type": "string", "default": "fixed" }, "oneTimeFixedAmount": { "type": "number", "default": 10 }, "oneTimeMinimumAmount": { "type": "number", "default": 0 }, "oneTimeVariableAmountField": { "type": "string", "default": "" }, "subscriptionAmountType": { "type": "string", "default": "fixed" }, "subscriptionFixedAmount": { "type": "number", "default": 10 }, "subscriptionMinimumAmount": { "type": "number", "default": 0 }, "subscriptionVariableAmountField": { "type": "string", "default": "" }, "className": { "type": "string", "default": "" }, "customClasses": { "type": "string", "default": "" }, "gateway": { "type": "string", "default": "stripe" }, "paymentMethods": { "type": "array", "items": { "type": "string" }, "default": ["stripe"] } } }