You are here

function commerce_braintree_payment_session_save in Commerce Braintree 7

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

Saves the "card on file" choice (reuse a card, which card or new card).

Parameters

$order_id:

$choice:

1 call to commerce_braintree_payment_session_save()
_commerce_braintree_commerce_payment_checkout_custom_validation in ./commerce_braintree.module
Callback. Custom checkout payement validation.

File

./commerce_braintree.module, line 250
Implementations of the Braintree payment gateway (http://braintreepayments.com) for drupal commerce.

Code

function commerce_braintree_payment_session_save($order_id, $choice) {
  $_SESSION['order_' . $order_id] = $choice;
}