PHPackages                             digitickets/omnipay-googlepay-stripe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. digitickets/omnipay-googlepay-stripe

ActiveLibrary[Payment Processing](/categories/payments)

digitickets/omnipay-googlepay-stripe
====================================

Custom OmniPay driver for Google Pay (with Stripe)

0.2.2(3y ago)13PHP

Since Apr 7Pushed 3y ago2 watchersCompare

[ Source](https://github.com/digitickets/omnipay-googlepay-stripe)[ Packagist](https://packagist.org/packages/digitickets/omnipay-googlepay-stripe)[ Docs](https://github.com/digitickets/omnipay-googlepay-stripe)[ RSS](/packages/digitickets-omnipay-googlepay-stripe/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

Omnipay: Google Pay
===================

[](#omnipay-google-pay)

**Google Pay driver for the Omnipay PHP payment library**

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+.

This package implements only Google Pay support for Omnipay 2.x Off-sites, where the customer is redirected to enter payment details

Installation
------------

[](#installation)

This package is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "digitickets/omnipay-googlepay-stripe": "^0.2"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

Basic Usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

- Google Pay

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)repository.

This is a sample code of standard Off-site controller using the driver.

### Request a payment

[](#request-a-payment)

```
// Gateway setup
$gateway = $this->gatewayFactory('GooglePay');

// Create or fetch your product transaction
$transaction = $this->createTransaction($request);

// Get the data ready for the payment
// Please note that even off-site gateways make use of the CreditCard object,
// because often you need to pass customer billing or shipping details through to the gateway.
$cardData = $transaction->asOmniPay;
$itemsBag = $this->requestItemsBag($request);

// Authorize request
$request = $gateway->purchase(array(
    'amount' => $transaction->amount,
    'currency' => $transaction->currency,
    'card' => $cardData,
    'returnUrl' => $this->generateCallbackUrl(
        'GooglePay',
        $transaction->id
    ),
    'transactionId' => $transaction->id,
    'description' => $transaction->description,
    'items' => $itemsBag,
));

// Send request
$response = $request->send();

// Process response
$this->processResponse($response);

```

### Process payment result

[](#process-payment-result)

```
// Fetch transaction details
$transaction = Transaction::findOrFail($transactionId);

// Gateway setup
$gateway = $this->gatewayFactory('GooglePay');

// Get the data ready to complete the payment. Since this is typically a stateless callback
// we need to first retrieve our original product transaction details
$params = [
    "amount" => $transaction->amount,
    "currency" => $transaction->currency,
    'returnUrl' => $this->generateCallbackUrl(
        'GooglePay',
        $transaction->id
    ),
    'transactionId' => $transaction->id,
    'transactionReference' => $transaction->ref,
];

// Complete purchase request
$request = $gateway->completePurchase($params);

// Send request
$response = $request->send();

// Process response
$this->processResponse($response);

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~16 days

Total

4

Last Release

1447d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43ff80479dac1859112b124bcc63db5acc6d9cf39ea69fa5bf7aa4d5b7c5f0b1?d=identicon)[DigiTickets](/maintainers/DigiTickets)

---

Tags

stripeomnipaygooglepay

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/digitickets-omnipay-googlepay-stripe/health.svg)

```
[![Health](https://phpackages.com/badges/digitickets-omnipay-googlepay-stripe/health.svg)](https://phpackages.com/packages/digitickets-omnipay-googlepay-stripe)
```

###  Alternatives

[payum/payum-bundle

One million downloads of Payum already! Payum offers everything you need to work with payments. Check more visiting site.

59510.3M40](/packages/payum-payum-bundle)[omnipay/stripe

Stripe driver for the Omnipay payment processing library

1915.6M34](/packages/omnipay-stripe)[payum/payum-laravel-package

Rich payment solutions for Laravel framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more

12842.5k](/packages/payum-payum-laravel-package)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)[aimeos/ai-payments

Payment extension for Aimeos e-commerce solutions

2160.7k](/packages/aimeos-ai-payments)[recca0120/laravel-payum

Rich payment solutions for Laravel framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more

741.5k](/packages/recca0120-laravel-payum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
