Created
January 14, 2016 02:18
-
-
Save DevinWalker/d075d2c2fb040941608c to your computer and use it in GitHub Desktop.
Call the Gateway by it's name; primarily used for testing purposes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Call Give Payment Gateways by Name | |
* | |
* @param $gateways | |
* | |
* @return mixed | |
*/ | |
function gr_override_gateway_labels( $gateways ) { | |
$gateways['authorize']['checkout_label'] = 'Authorize'; | |
$gateways['stripe']['checkout_label'] = 'Stripe'; | |
$gateways['paypalpro']['checkout_label'] = 'PayPal Pro'; | |
$gateways['wepay']['checkout_label'] = 'WePay'; | |
return $gateways; | |
} | |
add_filter( 'give_payment_gateways', 'gr_override_gateway_labels' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment