Search by

oxid-esales / stripe-wallet

Stripe Payment Module for Oxid 7

Maintainers

Package info

github.com/OXID-eSales/stripe-wallet

Homepage

Type:oxideshop-module

pkg:composer/oxid-esales/stripe-wallet

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0


README

Developer Installation

composer config --global github-oauth.github.com YOUR_GITHUB_TOKEN 
git clone git@github.com:OXID-eSales/docker-eshop-sdk.git oxidshop --branch=b-8.0.x
cd oxidshop
git clone git@github.com:OXID-eSales/stripe-wallet.git stripe-install --recursive
./stripe-install/recipe/setup-twig-dev.sh

After install is finished you may need to add

error_reporting = E_ALL & ~E_WARNING & ~E_DEPRECATED

into ./containers/php/custom.ini

then do

make up

Activation

OXID 7.x Module Commands:

Action Command
Install bin/oe-console oe:module:install extensions/stripe
Uninstall bin/oe-console oe:module:uninstall oe_payments_stripe_wallet
Activate bin/oe-console oe:module:activate oe_payments_stripe_wallet
Deactivate bin/oe-console oe:module:deactivate oe_payments_stripe_wallet

Migrations

Stripe module doesn't have any migrations. All DB-dependancies are in the payment-component package.

Running Tests

Pre-Commit Checks

Run the pre-commit check script before committing:

# Fast check (Unit tests only) - recommended for quick validation
./bin/pre-commit-check.sh

# Full check (Unit + Integration tests) - comprehensive validation
./bin/pre-commit-check.sh --full

# Skip PHPUnit tests (style checks only)
./bin/pre-commit-check.sh --no-phpunit

Running Specific Test Suites

# Unit tests only
docker compose exec php php vendor/bin/phpunit -c extensions/stripe/tests/phpunit.xml --testsuite Unit

# Integration tests only
docker compose exec php php vendor/bin/phpunit -c extensions/stripe/tests/phpunit.xml --testsuite Integration

# All tests
docker compose exec php php vendor/bin/phpunit -c extensions/stripe/tests/phpunit.xml

E2E Data Persistence Tests

The E2E tests use real database connections and leave data for inspection:

# Run data persistence tests
docker compose exec php php vendor/bin/phpunit -c extensions/stripe/tests/phpunit.xml \
    extensions/stripe/tests/Integration/Component/Checkout/FullDataPersistenceFlowTest.php

Test data uses e2e_ prefix for easy identification and cleanup.

Migrations

To run migrations the package oxid-esales/oxideshop-doctrine-migration-wrapper should be installed.

 composer require oxid-esales/oxideshop-doctrine-migration-wrapper