You are here

function commerce_braintree_payement_session_delete in Commerce Braintree 7.2

Same name and namespace in other branches
  1. 7.3 commerce_braintree.module \commerce_braintree_payement_session_delete()
  2. 7 commerce_braintree.module \commerce_braintree_payement_session_delete()

Delete the "card on file" choice.

1 call to commerce_braintree_payement_session_delete()
commerce_braintree_tr_process_transaction in ./commerce_braintree.module
Processes a Transparent Redirect transaction after the customer has returned.

File

./commerce_braintree.module, line 613
Integrates Braintree Transparent Redirect with Drupal Commerce.

Code

function commerce_braintree_payement_session_delete($order_id = NULL) {
  if ($order_id) {
    unset($_SESSION['order_' . $order_id]);
  }
}