Skip to content

Commit

Permalink
Merge pull request #15 from wirecard/savePMForGuest
Browse files Browse the repository at this point in the history
#14 Store selected payment method for guest users
  • Loading branch information
rinnhofer authored Mar 6, 2017
2 parents 5baefd5 + d19a3a2 commit 0d36020
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@

add_action( 'wp_ajax_saveWcpPaymentMethod', 'save_selected_payment_method');

add_action( 'wp_ajax_nopriv_saveWcpPaymentMethod', 'save_selected_payment_method');

function save_selected_payment_method() {
if( isset($_POST['code']) )
WC()->session->selected_wcp_payment = $_POST['code'];
Expand Down

0 comments on commit 0d36020

Please sign in to comment.