| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "suredonation/payment", |
| 5 |
"title": "Payment", |
| 6 |
"description": "Displays a SureDonation Payment Field", |
| 7 |
"category": "suredonation", |
| 8 |
"keywords": [ "payment", "stripe", "money", "charge", "billing" ], |
| 9 |
"textdomain": "suredonation", |
| 10 |
"supports": { |
| 11 |
"reusable": false, |
| 12 |
"html": false, |
| 13 |
"multiple": false |
| 14 |
}, |
| 15 |
"example": { |
| 16 |
"attributes": { |
| 17 |
"preview": true |
| 18 |
} |
| 19 |
}, |
| 20 |
"attributes": { |
| 21 |
"preview": { |
| 22 |
"type": "boolean", |
| 23 |
"default": false |
| 24 |
}, |
| 25 |
"block_id": { |
| 26 |
"type": "string" |
| 27 |
}, |
| 28 |
"required": { |
| 29 |
"type": "boolean", |
| 30 |
"default": true |
| 31 |
}, |
| 32 |
"fieldWidth": { |
| 33 |
"type": "number", |
| 34 |
"default": 100 |
| 35 |
}, |
| 36 |
"label": { |
| 37 |
"type": "string", |
| 38 |
"default": "Payment" |
| 39 |
}, |
| 40 |
"help": { |
| 41 |
"type": "string", |
| 42 |
"default": "" |
| 43 |
}, |
| 44 |
"errorMsg": { |
| 45 |
"type": "string", |
| 46 |
"default": "" |
| 47 |
}, |
| 48 |
"formId": { |
| 49 |
"type": "number", |
| 50 |
"default": 0 |
| 51 |
}, |
| 52 |
"slug": { |
| 53 |
"type": "string", |
| 54 |
"default": "" |
| 55 |
}, |
| 56 |
"paymentType": { |
| 57 |
"type": "string", |
| 58 |
"default": "one-time" |
| 59 |
}, |
| 60 |
"subscriptionPlan": { |
| 61 |
"type": "object", |
| 62 |
"default": { |
| 63 |
"name": "Subscription Plan", |
| 64 |
"interval": "month", |
| 65 |
"billingCycles": "ongoing" |
| 66 |
} |
| 67 |
}, |
| 68 |
"customerNameField": { |
| 69 |
"type": "string", |
| 70 |
"default": "" |
| 71 |
}, |
| 72 |
"customerEmailField": { |
| 73 |
"type": "string", |
| 74 |
"default": "" |
| 75 |
}, |
| 76 |
"customerPhoneField": { |
| 77 |
"type": "string", |
| 78 |
"default": "" |
| 79 |
}, |
| 80 |
"amountType": { |
| 81 |
"type": "string", |
| 82 |
"default": "fixed" |
| 83 |
}, |
| 84 |
"fixedAmount": { |
| 85 |
"type": "number", |
| 86 |
"default": 10 |
| 87 |
}, |
| 88 |
"minimumAmount": { |
| 89 |
"type": "number", |
| 90 |
"default": 0 |
| 91 |
}, |
| 92 |
"amountLabel": { |
| 93 |
"type": "string", |
| 94 |
"default": "Enter Amount" |
| 95 |
}, |
| 96 |
"variableAmountField": { |
| 97 |
"type": "string", |
| 98 |
"default": "" |
| 99 |
}, |
| 100 |
"className": { |
| 101 |
"type": "string", |
| 102 |
"default": "" |
| 103 |
}, |
| 104 |
"customClasses": { |
| 105 |
"type": "string", |
| 106 |
"default": "" |
| 107 |
}, |
| 108 |
"gateway": { |
| 109 |
"type": "string", |
| 110 |
"default": "stripe" |
| 111 |
}, |
| 112 |
"paymentMethods": { |
| 113 |
"type": "array", |
| 114 |
"items": { |
| 115 |
"type": "string" |
| 116 |
}, |
| 117 |
"default": ["stripe"] |
| 118 |
} |
| 119 |
} |
| 120 |
} |
| 121 |
|