PHPackages                             shaz3e/peach-payment - 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. shaz3e/peach-payment

ActiveLibrary[Payment Processing](/categories/payments)

shaz3e/peach-payment
====================

Peach payment hosted checkout

1.0.1(2y ago)1442MITPHP

Since Nov 25Pushed 2y ago2 watchersCompare

[ Source](https://github.com/Shaz3e/peach-payment)[ Packagist](https://packagist.org/packages/shaz3e/peach-payment)[ RSS](/packages/shaz3e-peach-payment/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

Peach Payment Embed Checkout with Laravel
=========================================

[](#peach-payment-embed-checkout-with-laravel)

[![Total Downloads](https://camo.githubusercontent.com/d8c64ddec07985cf73c368ee1bfcbd7edf5eabb8b9ade2624e3e2ed2deea9b6d/687474703a2f2f706f7365722e707567782e6f72672f7368617a33652f70656163682d7061796d656e742f646f776e6c6f616473)](https://packagist.org/packages/shaz3e/peach-payment)[![Latest Stable Version](https://camo.githubusercontent.com/dbc3e27b63b1b886b5964c67e5261a0a978a142c12f8587c6325dd22c041e850/687474703a2f2f706f7365722e707567782e6f72672f7368617a33652f70656163682d7061796d656e742f76)](https://packagist.org/packages/shaz3e/peach-payment)[![License](https://camo.githubusercontent.com/ec0280a0417b2e9fa3e52df4b3c23c7131d2b88d01ee301efe5f54c2909f3ef9/687474703a2f2f706f7365722e707567782e6f72672f7368617a33652f70656163682d7061796d656e742f6c6963656e7365)](https://packagist.org/packages/shaz3e/peach-payment)

### Install Peach Payment in Laravel

[](#install-peach-payment-in-laravel)

```
composer require shaz3e/peach-payment
```

### Add service provider

[](#add-service-provider)

```
'providers' => [
    Shaz3e\PeachPayment\Providers\PeachPaymentServiceProvider::class,
]
```

### Publish the config file

[](#publish-the-config-file)

```
php artisan vendor:publish --tag=peach-payment-config
```

### Update .env Data

[](#update-env-data)

```
php artisan update:peach-payment-config
```

### How to Use

[](#how-to-use)

Watch YouTube Video Tutorials with details instructions and customization

[![YouTube Video](https://camo.githubusercontent.com/34bc1819bc0c9777b9d308637e632b3051c39927cfdef67d2853beed1eb889f4/687474703a2f2f696d672e796f75747562652e636f6d2f76692f47773158773545443559412f6d617872657364656661756c742e6a7067)](http://www.youtube.com/watch?v=Gw1Xw5ED5YA "Peach Payment Integration")

```
use Shaz3e\PeachPayment\Helpers\PeachPayment;

// Use the following code within your controller method
/**
 * Update in .env previously and get it from config
 */
$entityId = config('peach-payment.entity_id');
/**
 * Dynamic amount should be float
 * It can be passed via request
 */
$amount = (float) $request->amount;
/**
 * Return URL is optional
 * If you want user to redirect to another URL of your approved domain you can use the following
 * Do not use / at the beginnig of the $return_url as it will generate URL i.e. config('peach-payment.domain').'/'.$return_url.'/?PeachPaymentOrder='.$order_number
 */
$return_url = 'after-main-domain/route/sub-route/?PeachPaymentOrder=OID123456789'; // Optional

/**
 * Create new request for PeachPayment helper
 */
$peachPayment = new  PeachPayment();
/**
 * Generate token and initiate the request
 */
$checkoutData = $peachPayment->createCheckout($amount);
/**
 * Optional
 * Get Order Number if you want to update record in database
 * suggest me this is just for reconcile purpose
 * $checkoutData['order_number'] = OID.time()
 */
$order_number = $checkoutData['order_number'];
/**
 * CheckoutId is unique id generated by PeachPayment
 * This should be passed to render the form in blade template
 */
$checkoutId = $checkoutData['checkoutId'];
return  view('your.view', compact('entityId', 'checkoutId'));
```

In your.view use the following code.

```

    const checkout = Checkout.initiate({
        key: "{{ $entityId }}",
        checkoutId: "{{ $checkoutId }}",
    });

    checkout.render("#payment-form");

```

When you run `php artisan update:peach-payment-config` it will ask you the following.

1. What is your PEACHPAYMENT\_ENVIRONMENT?
2. What is your PEACHPAYMENT\_ENTITY\_ID?
3. What is your PEACHPAYMENT\_CLIENT\_ID?
4. What is your PEACHPAYMENT\_CLIENT\_SECRET?
5. What is your PEACHPAYMENT\_MERCHANT\_ID?
6. What is your PEACHPAYMENT\_DOMAIN?
7. What is your PEACHPAYMENT\_CURRENCY?

After updating env data visit `yourwebsite.com/peachpayment` and it will fatch token and initiate the checkout at [PeachPayment](https://peachpayments.com)

Test Credit Cards

#### Contributing

[](#contributing)

- If you have any suggestions please let me know : .
- Please help me improve code

#### License

[](#license)

Peach Payment Embed Checkout with Laravel is licensed under the MIT license. Enjoy!

Credit
------

[](#credit)

- [Shaz3e](https://www.shaz3e.com) | [YouTube](https://www.youtube.com/@shaz3e) | [Facebook](https://www.facebook.com/shaz3e) | [Twitter](https://twitter.com/shaz3e) | [Instagram](https://www.instagram.com/shaz3e) | [LinkedIn](https://www.linkedin.com/in/shaz3e/)
- [Diligent Creators](https://www.diligentcreators.com) | [Facebook](https://www.facebook.com/diligentcreators) | [Instagram](https://www.instagram.com/diligentcreators/) | [Twitter](https://twitter.com/diligentcreator) | [LinkedIn](https://www.linkedin.com/company/diligentcreators/) | [Pinterest](https://www.pinterest.com/DiligentCreators/) | [YouTube](https://www.youtube.com/@diligentcreator) [TikTok](https://www.tiktok.com/@diligentcreators) | [Google Map](https://g.page/diligentcreators)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Total

3

Last Release

897d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55fa895f3ba767604ea0fc6cc1a6f7fc69e9fb73de02886a770fd75ab886fbbc?d=identicon)[Shaz3e](/maintainers/Shaz3e)

---

Top Contributors

[![Shaz3e](https://avatars.githubusercontent.com/u/526602?v=4)](https://github.com/Shaz3e "Shaz3e (34 commits)")

### Embed Badge

![Health badge](/badges/shaz3e-peach-payment/health.svg)

```
[![Health](https://phpackages.com/badges/shaz3e-peach-payment/health.svg)](https://phpackages.com/packages/shaz3e-peach-payment)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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