Hi @nitrat,
The array key $form_data['misc']['payment_status']
will contain the entry payment status, if Gravity Forms has set one. You can tell if an entry has a payment status by viewing the Entry Details page and checking for a Payment Details meta box with the Status displayed.
Gravity Forms will only set the payment status if a payment add-on is configured, active, and runs on form submission for an entry. Otherwise, the value will be left blank.
The default payment statuses are:
- Authorized
- Paid
- Processing
- Failed
- Active
- Cancelled
- Pending
- Refunded
- Voided
Plugins may modify this list to add/edit/remove items.
When building custom PDF templates, the ?data=1 helper parameter is useful to see data available for an entry in $form_data
Happy holidays!