PHPackages                             elvanto/omnipay-tithely - 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. elvanto/omnipay-tithely

ActiveLibrary

elvanto/omnipay-tithely
=======================

Tithe.ly driver for the Omnipay payment processing library

2.0.0(6y ago)028.4k—10%MITPHPPHP &gt;=5.6.0CI passing

Since Aug 31Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/elvanto/omnipay-tithely)[ Packagist](https://packagist.org/packages/elvanto/omnipay-tithely)[ Docs](https://github.com/elvanto/omnipay-tithely)[ RSS](/packages/elvanto-omnipay-tithely/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

Omnipay: Tithely
================

[](#omnipay-tithely)

**Tithe.ly driver for the Omnipay payment processing library**

[![Latest Version on Packagist](https://camo.githubusercontent.com/585bf0f5abd583a6766e6d2f84f3ce0fb721183bf4fda8b77751035ddb798394/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c76616e746f2f6f6d6e697061792d74697468656c792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elvanto/omnipay-tithely)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f1d22e2046f82aaaa8170c7a5b9b4cb2dd55991e2f9305f3cf764f5371890932/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f656c76616e746f2f6f6d6e697061792d74697468656c792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/elvanto/omnipay-tithely)[![Coverage Status](https://camo.githubusercontent.com/af8a6b120baf9d92843bd366ec24c2a445e44c17c5cde093fb3bfeafcb4e9bba/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f656c76616e746f2f6f6d6e697061792d74697468656c792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/elvanto/omnipay-tithely/code-structure)[![Quality Score](https://camo.githubusercontent.com/396e10a4d0ec0a3a67498186a4a118b0981e277d6d93969a131c7ffbe37d475b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f656c76616e746f2f6f6d6e697061792d74697468656c792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/elvanto/omnipay-tithely)[![Total Downloads](https://camo.githubusercontent.com/67fa681c67d392fed2c12775a9a2f6cf8d204055aafabcb5901ac6d7be0304b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c76616e746f2f6f6d6e697061792d74697468656c792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elvanto/omnipay-tithely)

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.6+. This package implements Tithe.ly support for Omnipay.

Install
-------

[](#install)

Via Composer

```
$ composer require elvanto/omnipay-tithely
```

Versions
--------

[](#versions)

Omnipay 3.x is supported starting with v2.0.0 of this package.

Usage
-----

[](#usage)

The following gateways are provided by this package:

- Tithe.ly (Quick Charge)

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

### Specific Usage Instructions

[](#specific-usage-instructions)

Omnipay tithely is an API middleware to simplify requests to [Tithely Quick-Charge v1](https://docs.tithe.ly/reference/quick-charge) and later V2. This Tithely api allows users to create a payment request without creating an account.

### Creating the payment request.

[](#creating-the-payment-request)

#### Tithely Payment Gateway

[](#tithely-payment-gateway)

Validation data like our *tithely organisation id* `tithely_org_Id`, *tithely public `tithely_public` and secret `tithely_secret` keys* exist as part of our gateway request. Additionally the gateway also takes our *giving type* `giving_type` field as a string.

The gateway details are set with the functions:

```
$gateway->setPublicKey($tithely_public);  // Required
$gateway->setPrivateKey($tithely_secret);  // Required
$gateway->setOrganizationId($tithely_org_Id);   // Required
$gateway->setGivingType("Offering");  // Required
```

#### Request Body

[](#request-body)

Unlike regular use of the tithely quick charge api, the omnipay/tithely api object requires a *card* object within the request to pass our `first_name`, `last_name`, and `email`. The `token`, `description`, `currency` and exist in request objects main body.

Specific to omnipay / tithely the `currency` field within the `$request` body is required.

```
$request["card"] =  new CreditCard(array(
    "first_name" => $first_name,   // Required
    "last_name" => $last_name,   // Required
    "email" => $email   // Required
));

$request["token"] = $token; // Stripe token. Required
$request["amount"] = "10.00";  // Required
$request["description"] = "Donation to church.";
$request["currency"] = $currency; //e.g. "USD" "CAD" "AUD" Required

$gateway = Omnipay::create('Tithely');

$tithely_public = "pub_*****"; // Required
$tithely_secret = "pri_*****"; // Required
$tithely_org_Id = "org_*****"; // Required

$gateway->setPublicKey($tithely_public);  // Required
$gateway->setPrivateKey($tithely_secret);  // Required
$gateway->setOrganizationId($tithely_org_Id);   // Required
$gateway->setGivingType("Offering");  // Required

$response = $gateway->purchase($request)->send();
```

### Accessing the response object.

[](#accessing-the-response-object)

The `$reponse` comes as a protected object. To access the response use the `getRequest` and `getData()` odadmnipay functions.

```
$response->getRequest()->getData()["first_name"];
```

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release announcements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/elvanto/omnipay-tithely/issues), or better yet, fork the library and submit a pull request.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance56

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~734 days

Total

2

Last Release

2449d ago

Major Versions

v1.0.0 → 2.0.02019-09-04

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/77a936b5c659456479744d404f68ba7bca9552f1d008aa2cf3b8a9175c9ddfb4?d=identicon)[bensinclair](/maintainers/bensinclair)

![](https://www.gravatar.com/avatar/7cf1c2feb7af5eafbcec1d7258f9909e785bb27bda7ca57e47a2794241bf960c?d=identicon)[joshmcrae](/maintainers/joshmcrae)

---

Top Contributors

[![joshmcrae](https://avatars.githubusercontent.com/u/12324115?v=4)](https://github.com/joshmcrae "joshmcrae (5 commits)")[![anthonymenefee](https://avatars.githubusercontent.com/u/54656185?v=4)](https://github.com/anthonymenefee "anthonymenefee (4 commits)")[![b-hayes](https://avatars.githubusercontent.com/u/30540495?v=4)](https://github.com/b-hayes "b-hayes (1 commits)")[![drinkdecaf](https://avatars.githubusercontent.com/u/10520082?v=4)](https://github.com/drinkdecaf "drinkdecaf (1 commits)")

---

Tags

omnipaytithely

### Embed Badge

![Health badge](/badges/elvanto-omnipay-tithely/health.svg)

```
[![Health](https://phpackages.com/badges/elvanto-omnipay-tithely/health.svg)](https://phpackages.com/packages/elvanto-omnipay-tithely)
```

###  Alternatives

[league/omnipay

Omnipay payment processing library

6.1k9.7M166](/packages/league-omnipay)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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