PHPackages                             bantunes/stancer-acorn-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. bantunes/stancer-acorn-payment

ActiveLibrary

bantunes/stancer-acorn-payment
==============================

Acorn/Laravel integration for Stancer on Radicle/Roots stack

1.0.0(1y ago)20MITPHPPHP &gt;=8.0

Since Dec 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bantunesm/stancer-acorn-payment)[ Packagist](https://packagist.org/packages/bantunes/stancer-acorn-payment)[ RSS](/packages/bantunes-stancer-acorn-payment/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Stancer-Acorn-Payment
=====================

[](#stancer-acorn-payment)

A Laravel package for integrating Stancer payments in a Roots Radicle (Acorn) environment.

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

[](#installation)

1. Add the package via Composer:

    ```
    composer require bantunes/stancer-acorn-payment
    ```
2. Publish the configuration file:

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

Configuration
-------------

[](#configuration)

Set the following environment variables in your `.env` file:

```
STANCER_API_KEY=your-stancer-api-key
STANCER_API_ENDPOINT=https://api.stancer.com

```

This ensures that the Stancer SDK is correctly initialized with your API credentials.

Usage
-----

[](#usage)

The package provides a default route for handling payments. To test the functionality:

1. Send a POST request to the `/payment` endpoint with the following body:

    ```
    {
        "card_number": "4242424242424242",
        "expiry_date": "12/24",
        "cvc": "123"
    }
    ```
2. Replace the card details with valid test credentials provided by Stancer.
3. The payment response will include the status and a unique `payment_id`:

    ```
    {
        "status": "success",
        "payment_id": "paym_twqlZCFrfkUE69pRKKYByZct"
    }
    ```

Customization
-------------

[](#customization)

### Service Provider

[](#service-provider)

The `StancerServiceProvider` automatically initializes the Stancer SDK using the values from your `.env` file. You can customize the behavior by modifying the `src/Config/stancer.php` file.

### Payment Controller

[](#payment-controller)

The `PaymentController` includes a `createPayment` method that handles payments using the Stancer SDK. You can extend it based on your application needs.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance40

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

511d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8640ada11bbb1ee2c0840a78c6d97381bbf92782bf9519690bc716c54ffe88b5?d=identicon)[bantunes](/maintainers/bantunes)

---

Top Contributors

[![bantunesm](https://avatars.githubusercontent.com/u/20595276?v=4)](https://github.com/bantunesm "bantunesm (1 commits)")

---

Tags

acornfintechpayment-gatewayrootsroots-sagestancerwordpress

### Embed Badge

![Health badge](/badges/bantunes-stancer-acorn-payment/health.svg)

```
[![Health](https://phpackages.com/badges/bantunes-stancer-acorn-payment/health.svg)](https://phpackages.com/packages/bantunes-stancer-acorn-payment)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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