Skip to content

Instantly share code, notes, and snippets.

@tommyshellberg
Last active May 28, 2019 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommyshellberg/ff460b47f715b7cfed0554d945f645d8 to your computer and use it in GitHub Desktop.
Save tommyshellberg/ff460b47f715b7cfed0554d945f645d8 to your computer and use it in GitHub Desktop.
WooCommerce Stripe - Test a successful payment with SOFORT
add_filter('wc_stripe_sofort_source', 'add_testing_details_sofort', 10, 2);
function add_testing_details_sofort($post_data, $order) {
$post_data['owner']->name = 'succeeding_charge';
return $post_data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment