includes/admin/emails/class-donation-receipt-email.php 1 location
|
@@ 269-279 (lines=11) @@
|
| 266 |
|
* |
| 267 |
|
* @param $payment_id |
| 268 |
|
*/ |
| 269 |
|
public function send_donation_receipt( $payment_id ) { |
| 270 |
|
$this->payment = new Give_Payment( $payment_id ); |
| 271 |
|
|
| 272 |
|
// Setup email data. |
| 273 |
|
$this->setup_email_data(); |
| 274 |
|
|
| 275 |
|
// Send email. |
| 276 |
|
$this->send_email_notification( array( |
| 277 |
|
'payment_id' => $this->payment->ID, |
| 278 |
|
) ); |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
/** |
| 282 |
|
* Resend payment receipt by row action. |
includes/admin/emails/class-new-offline-donation-email.php 1 location
|
@@ 251-266 (lines=16) @@
|
| 248 |
|
* |
| 249 |
|
* @param int $payment_id |
| 250 |
|
*/ |
| 251 |
|
public function setup_email_notification( $payment_id ) { |
| 252 |
|
$this->payment = new Give_Payment( $payment_id ); |
| 253 |
|
|
| 254 |
|
// Exit if not donation was not with offline donation. |
| 255 |
|
if ( 'offline' !== $this->payment->gateway ) { |
| 256 |
|
return; |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
// Set email data. |
| 260 |
|
$this->setup_email_data(); |
| 261 |
|
|
| 262 |
|
// Send email. |
| 263 |
|
$this->send_email_notification( array( |
| 264 |
|
'payment_id' => $this->payment->ID, |
| 265 |
|
) ); |
| 266 |
|
} |
| 267 |
|
|
| 268 |
|
/** |
| 269 |
|
* Set notification status |
includes/admin/emails/class-offline-donation-instruction-email.php 1 location
|
@@ 219-234 (lines=16) @@
|
| 216 |
|
* |
| 217 |
|
* @param int $payment_id |
| 218 |
|
*/ |
| 219 |
|
public function setup_email_notification( $payment_id ) { |
| 220 |
|
$this->payment = new Give_Payment( $payment_id ); |
| 221 |
|
|
| 222 |
|
// Exit if not donation was not with offline donation. |
| 223 |
|
if ( 'offline' !== $this->payment->gateway ) { |
| 224 |
|
return; |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
// Set email data. |
| 228 |
|
$this->setup_email_data(); |
| 229 |
|
|
| 230 |
|
// Send email. |
| 231 |
|
$this->send_email_notification( array( |
| 232 |
|
'payment_id' => $this->payment->ID, |
| 233 |
|
) ); |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
/** |
| 237 |
|
* Set notification status |