• Resolved Nitrat

    (@nitrat)


    Hi! how to use the payment status in the logic of displaying template data?The code $status = $form_data[‘misc’][‘payment_status’]; does not show anything

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    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!

    Thread Starter Nitrat

    (@nitrat)

    Hi!

    Thank you. I got it a little wrong. My payment status is taken from a selection from the list, so it’s clear now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Payment status’ is closed to new replies.