You are here

function uc_credit_cart_review_back_submit in Ubercart 8.4

Same name and namespace in other branches
  1. 6.2 payment/uc_credit/uc_credit.module \uc_credit_cart_review_back_submit()
  2. 7.3 payment/uc_credit/uc_credit.module \uc_credit_cart_review_back_submit()

Store the temporary CC data again if the back button is pressed.

1 string reference to 'uc_credit_cart_review_back_submit'
uc_credit_form_uc_cart_checkout_review_form_alter in payment/uc_credit/uc_credit.module
Implements hook_form_FORM_ID_alter() for uc_cart_checkout_review_form().

File

payment/uc_credit/uc_credit.module, line 114
Defines the credit card payment method and hooks in payment gateways.

Code

function uc_credit_cart_review_back_submit($form, FormStateInterface $form_state) {
  if ($form_state
    ->hasValue('sescrd')) {
    \Drupal::service('session')
      ->set('sescrd', base64_decode($form_state
      ->getValue('sescrd')));
  }
}