Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lorenzocaum/f7ae45fd2df92df8ba0d to your computer and use it in GitHub Desktop.
Save lorenzocaum/f7ae45fd2df92df8ba0d to your computer and use it in GitHub Desktop.
Enable auth & capture (saleonly) for various payment gateways for Shopp
<?php
//* Do NOT include the opening php tag
//* Enable auth and capture for Authorizenet for Shopp
add_filter('shopp_purchase_order_authorizenet_processing',create_function('','return "sale";'));
<?php
//* Do NOT include the opening php tag
//* Enable auth and capture for First Data for Shopp
add_filter('shopp_purchase_order_firstdata_processing',create_function('','return "sale";'));
<?php
//* Do NOT include the opening php tag
//* Enable auth and capture for Intuit Merchant Service for Shopp
add_filter('shopp_purchase_order_intuitmerchantservice_processing',create_function('','return "sale";'));
<?php
//* Do NOT include the opening php tag
//* Enable auth and capture for PayPal Pro for Shopp
add_filter('shopp_purchase_order_paypalpro_processing',create_function('','return "sale";'));
<?php
//* Do NOT include the opening php tag
//* Enable auth and capture for Stripe for Shopp
add_filter('shopp_purchase_order_stripe_processing',create_function('','return "sale";'));
@lorenzocaum
Copy link
Author

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