function commerce_stripe_cardonfile_update_form_submit in Commerce Stripe 7.3
File
- ./
commerce_stripe.module, line 1426 - This module provides Stripe (http://stripe.com/) payment gateway integration to Commerce. Commerce Stripe offers a PCI-compliant way to process payments straight from you Commerce shop.
Code
function commerce_stripe_cardonfile_update_form_submit($form, &$form_state) {
$card_data = $form_state['values']['card_data'];
$payment_method = commerce_payment_method_instance_load($card_data->instance_id);
commerce_stripe_cardonfile_update($form, $form_state, $payment_method, $card_data);
$form_state['redirect'] = 'user/' . $card_data->uid . '/cards';
}