diff --git a/admin/class-paystack-forms-admin.php b/admin/class-paystack-forms-admin.php index 0ed0847..acdc6be 100755 --- a/admin/class-paystack-forms-admin.php +++ b/admin/class-paystack-forms-admin.php @@ -327,12 +327,19 @@ function kkd_pff_paystack_editor_add_email_data() { $heading = get_post_meta($post->ID, '_heading', true); $message = get_post_meta($post->ID, '_message', true); $sendreceipt = get_post_meta($post->ID, '_sendreceipt', true); + $sendinvoice = get_post_meta($post->ID, '_sendinvoice', true); if ($subject == "") {$subject = 'Thank you for your payment';} if ($sendreceipt == "") {$sendreceipt = 'yes';} + if ($sendinvoice == "") {$sendinvoice = 'yes';} if ($heading == "") {$heading = "We've received your payment";} if ($message == "") {$message = 'Your payment was received and we appreciate it.';} // Echo out the field + echo '

Send an invoices when a payment is attempted:

'; + echo ''; echo '

Send Email Receipt:

'; echo '