| @@ -5,8 +5,9 @@ | ||
| 5 | 5 | if (!defined('ABSPATH')) { |
| 6 | 6 | exit; // Exit if accessed directly. |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | +use FluentForm\App\Helpers\Helper; | |
| 9 | 10 | use FluentForm\App\Modules\Payments\Orders\OrderData; |
| 10 | 11 | use FluentForm\App\Modules\Payments\PaymentHelper; |
| 11 | 12 | |
| 12 | 13 | class PaymentReceipt |
| @@ -62,9 +63,10 @@ | ||
| 62 | 63 | return OrderData::getTotalPaid($this->entry); |
| 63 | 64 | } |
| 64 | 65 | |
| 65 | 66 | $value = ''; |
| 66 | - if(property_exists($this->entry, $property)) { | |
| 67 | + $columns = Helper::getEntryColumns($this->entry); | |
| 68 | + if(array_key_exists($property, $columns)) { | |
| 67 | 69 | $value = $this->entry->{$property}; |
| 68 | 70 | } |
| 69 | 71 | |
| 70 | 72 | if($property == 'payment_method' && $value == 'test') { |