access_token; // If desired, you can also store $info->user_id somewhere header('Location: index.php'); } else { // Unable to obtain access token echo 'Unable to obtain access token from WePay.'; } }