You are here

function commerce_square_obtain_token in Commerce Square Connect 7

Square OAuth flow menu callback to redirect back to the payment method form.

1 string reference to 'commerce_square_obtain_token'
commerce_square_menu in ./commerce_square.module
Implements hook_menu().

File

./commerce_square.module, line 358
Module file for Commerce Square.

Code

function commerce_square_obtain_token() {
  $options = array(
    'query' => array(
      'code' => $_GET['code'],
    ),
  );
  drupal_goto('admin/commerce/config/square', $options);
}