Download the PHP package rollpix/google-one-tap without Composer

On this page you can find all versions of the php package rollpix/google-one-tap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package google-one-tap

Rollpix Google One Tap Sign-in for Magento 2

Sponsor: www.rollpix.com

Leer en Español


Overview

Rollpix Google One Tap Sign-in is a Magento 2 extension designed to provide a frictionless authentication experience for e-commerce customers. By integrating Google One Tap Sign-in and a configurable Google Sign-In Button, this extension eliminates the need for traditional logins, allowing users to authenticate with a single click.

This module improves user experience, increases conversion rates and reduces cart abandonment by removing login barriers.

Unlike other similar solutions, this extension is built from scratch with full customization capabilities, ensuring flexibility for store owners. It includes the google/apiclient dependency for secure server-side token verification.


Table of Contents


Why Choose Rollpix Google One Tap?

Frictionless Authentication

Forget long, frustrating login forms. With Google One Tap, your customers can sign in instantly with their Google accounts, increasing engagement and checkout speed.

Seamless Experience Across Devices

This extension provides a consistent login experience on desktop, tablets and mobile devices, making authentication effortless.

Reduce Login Abandonment

Customers often forget passwords or abandon the login process due to long authentication steps. One Tap Sign-in eliminates these barriers, ensuring a higher login success rate.

Enhanced Security

This module supports Google's secure authentication protocols, helping protect user credentials from unauthorized access. The included google/apiclient library ensures secure token validation.

Full Customization

Store administrators have full control over authentication settings, UI design, button appearance, and page-specific positioning to match their brand and requirements.


Features


Technical Requirements

Requirement Version
Module Name rollpix/google-one-tap
Magento 2.4.6 - 2.4.8
PHP ^8.1.0 || ^8.2.0
Dependency google/apiclient ^2.15.0

Installation

Step 1: Configure Repository Access

Step 2: Add the Repository

Step 3: Install the Module

Step 4: Verify Installation


Google Cloud Console Setup

Step 1: Create a Google Cloud Project

  1. Go to Google Cloud Console
  2. Click "Select a project" at the top
  3. Click "New Project", enter a name, and click "Create"

Step 2: Enable Google Identity API

  1. Go to APIs & Services > Library
  2. Search for "Google Identity Services" UPDATE (ahora se llama "Identity Toolkit API")

  3. Click "Enable"

Step 3: Configure OAuth Consent Screen

  1. Go to APIs & Services > OAuth consent screen
  2. Select "External" as user type
  3. Fill in: App name, support email, authorized domains, developer contact
  4. Click through the remaining steps and "Back to Dashboard"

Step 4: Create OAuth 2.0 Credentials

  1. Go to APIs & Services > Credentials
  2. Click "Create Credentials" > "OAuth 2.0 Client ID"
  3. Select "Web application"
  4. Configure:
    • Authorized JavaScript origins: https://yourdomain.com (and https://www.yourdomain.com)
    • Authorized redirect URIs: https://yourdomain.com/customer/account
  5. Click "Create"

Step 5: Copy the Client ID

Copy the Client ID (format: 123456789-abc123def456.apps.googleusercontent.com). You do NOT need the Client Secret for One Tap.

Important: Use HTTPS in production. Add all domains where you want to use One Tap (www and non-www).


Module Configuration

Access Configuration

Stores > Configuration > Rollpix > One Tap Login


Configuration Options

1. General

Field Type Description
Module Status Enable/Disable Activates or deactivates the entire module

2. One Tap Popup Configuration

Field Type Description
Client ID Encrypted text Google OAuth Client ID from Cloud Console
Close Prompt on Background Click Yes/No Close the prompt when clicking outside
Auto Sign in Yes/No Auto-authenticate without clicking the prompt
Position Select Prompt position: Top Right, Top Left, Bottom Right, Bottom Left
Prompt Context Select Text in prompt: "Sign In" or "Sign Up"
Prompt Parent Element ID Text Optional DOM element ID to anchor the popup
ITP Support (Safari) Yes/No Intelligent Tracking Prevention support
Show Message on Dismiss Yes/No Show notification when user dismisses the prompt

3. Google Sign-In Button

Field Type Description
Enable Button Enable/Disable Show a Google Sign-In button on selected pages
Show Button On Multiselect Pages: Login, Registration, Checkout, Custom CSS Selector
Custom CSS Selector Text CSS selector for custom button placement
Login Page Position Select Above Login Form / Below Login Form
Registration Page Position Select Above Registration Form / Below Registration Form / Side Column (Next to Form)
Checkout Page Position Select Above Checkout Form / Below Email Section
Button Theme Select Outline, Filled Blue, Filled Black
Button Size Select Large, Medium, Small
Button Shape Select Rectangular, Pill, Circle, Square
Button Text Select Sign in with Google, Sign up with Google, Continue with Google, Signin
Logo Alignment Select Left, Center

4. Security Settings

Field Type Description
Enable Debug Logging Yes/No Log detailed info for troubleshooting (never use in production)
Enable Rate Limiting Yes/No Limit authentication attempts per IP
Maximum Attempts Number Max attempts within time window (default: 10)
Time Window Number Time window in seconds (default: 60)

5. Compatibility

Field Type Description
Disable Button when Amasty Social Login is active Yes/No Avoid duplicate Google buttons when Amasty Social Login is installed

6. Module Information

Displays module name, current version (read from composer.json), and repository URL.


Button Display Styles

Login & Checkout Pages

The Google Sign-In button is displayed inside a styled card with a title ("Quick sign in with your Google account") and the button centered. The card provides clean visual separation from the surrounding form.

Registration Page


Troubleshooting

The prompt does not appear on the frontend

  1. Verify the module is enabled in configuration
  2. Verify the Client ID is correctly configured
  3. Clear cache: bin/magento cache:flush
  4. Verify you are not logged in (prompt only appears for non-authenticated users)
  5. Verify your domain is in the authorized origins in Google Cloud Console
  6. Open browser console (F12) and check for JavaScript errors

Error "Invalid Client ID"

  1. Verify the Client ID is correct (no extra spaces)
  2. Verify the current domain is in the authorized origins in Google Cloud Console
  3. Clear Magento cache after changing the Client ID

The prompt appears but does not sign in

  1. Check browser console (F12) for errors
  2. Check Magento logs: var/log/system.log and var/log/exception.log
  3. Verify the Google account has a verified email
  4. Verify the domain uses HTTPS in production

Changelog

v2.1.3

v2.1.2

v2.1.1

v2.1.0

v2.0.0

v1.x


Security Features


Support


License


Built with performance, security and user experience in mind. Magento 2.4.6 - 2.4.8


All versions of google-one-tap with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
google/apiclient Version ^2.15
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rollpix/google-one-tap contains the following files

Loading the files please wait ...