Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created April 23, 2015 03:00
Show Gist options
  • Save pippinsplugins/b4c99a14121d0c252cd6 to your computer and use it in GitHub Desktop.
Save pippinsplugins/b4c99a14121d0c252cd6 to your computer and use it in GitHub Desktop.
RCP Sample Gateway
<?php
function pw_rcp_register_2checkout_gateway( $gateways ) {
$gateways['2checkout'] = array(
'label' => '2Checkout',
'admin_label' => '2Checkout Redirect',
'class' => 'RCP_Payment_Gateway_2Checkout'
);
return $gateways;
}
add_filter( 'rcp_payment_gateways', 'pw_rcp_register_2checkout_gateway' );
@neovash23
Copy link

I am new, and using RCP WP plugin. where Do I exactly put this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment