@@ 125-134 (lines=10) @@ | ||
122 | * |
|
123 | * @return string Gateway admin label |
|
124 | */ |
|
125 | function give_get_gateway_admin_label( $gateway ) { |
|
126 | $gateways = give_get_payment_gateways(); |
|
127 | $label = isset( $gateways[ $gateway ] ) ? $gateways[ $gateway ]['admin_label'] : $gateway; |
|
128 | ||
129 | if ( $gateway == 'manual' ) { |
|
130 | $label = __( 'Test Donation', 'give' ); |
|
131 | } |
|
132 | ||
133 | return apply_filters( 'give_gateway_admin_label', $label, $gateway ); |
|
134 | } |
|
135 | ||
136 | /** |
|
137 | * Returns the checkout label for the specified gateway |
|
@@ 145-154 (lines=10) @@ | ||
142 | * |
|
143 | * @return string Checkout label for the gateway |
|
144 | */ |
|
145 | function give_get_gateway_checkout_label( $gateway ) { |
|
146 | $gateways = give_get_payment_gateways(); |
|
147 | $label = isset( $gateways[ $gateway ] ) ? $gateways[ $gateway ]['checkout_label'] : $gateway; |
|
148 | ||
149 | if ( $gateway == 'manual' ) { |
|
150 | $label = __( 'Test Donation', 'give' ); |
|
151 | } |
|
152 | ||
153 | return apply_filters( 'give_gateway_checkout_label', $label, $gateway ); |
|
154 | } |
|
155 | ||
156 | /** |
|
157 | * Returns the options a gateway supports |