@@ 24-40 (lines=17) @@ | ||
21 | * |
|
22 | * @return string |
|
23 | */ |
|
24 | public function get_content_html() { |
|
25 | ob_start(); |
|
26 | wc_get_template( |
|
27 | $this->template_html, |
|
28 | array( |
|
29 | 'order' => $this->object, |
|
30 | 'email_heading' => $this->get_heading(), |
|
31 | 'sent_to_admin' => false, |
|
32 | 'plain_text' => false, |
|
33 | 'authorization_url' => $this->get_authorization_url( $this->object ), |
|
34 | 'email' => $this, |
|
35 | ), |
|
36 | '', |
|
37 | $this->template_base |
|
38 | ); |
|
39 | return ob_get_clean(); |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * Generates the plain text for the email while keeping the `template_base` in mind. |
|
@@ 47-63 (lines=17) @@ | ||
44 | * |
|
45 | * @return string |
|
46 | */ |
|
47 | public function get_content_plain() { |
|
48 | ob_start(); |
|
49 | wc_get_template( |
|
50 | $this->template_plain, |
|
51 | array( |
|
52 | 'order' => $this->object, |
|
53 | 'email_heading' => $this->get_heading(), |
|
54 | 'sent_to_admin' => false, |
|
55 | 'plain_text' => true, |
|
56 | 'authorization_url' => $this->get_authorization_url( $this->object ), |
|
57 | 'email' => $this, |
|
58 | ), |
|
59 | '', |
|
60 | $this->template_base |
|
61 | ); |
|
62 | return ob_get_clean(); |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * Generates the URL, which will be used to authenticate the payment. |