# suredonation/1.5.1/inc/blocks/payment/block.json

SureDonation – Donation Forms, Fundraising Campaigns &amp; Donor Management, version 1.5.1. 169 lines.

- Page: https://pluginprobe.com/plugins/suredonation/1.5.1/code/inc/blocks/payment/block.json
- Raw: https://pluginprobe.com/plugins/suredonation/1.5.1/raw/inc/blocks/payment/block.json
- Modified: 2026-09-09T06:00:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/suredonation/1.5.1/code/inc/blocks/payment/block.json#L10-L20`.

```json
{
	"$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"]
		}
	}
}

```
