This commit introduces a comprehensive Stripe module with support for managing customers, products, prices, and payment links. It also includes endpoint routes, helpers, and database updates to support Stripe operations, such as creating and retrieving entities or handling payment workflows. Additionally, a stripe module was integrated into existing routes and objects to enable seamless interaction with Stripe APIs.
32 lines
595 B
PHP
32 lines
595 B
PHP
<?php
|
|
|
|
namespace interfaces;
|
|
|
|
use Stripe\StripeClient;
|
|
|
|
interface stripe_i
|
|
{
|
|
/**
|
|
* Require the module to be enabled
|
|
* @returns void
|
|
*/
|
|
public function requireModuleEnabled(): void;
|
|
|
|
/**
|
|
* Require the secret key to be set
|
|
* @returns void
|
|
*/
|
|
public function requireValidSecretKey(): void;
|
|
|
|
/**
|
|
* Require the publishable key to be set
|
|
* @returns void
|
|
*/
|
|
public function requireValidPublishableKey(): void;
|
|
|
|
/**
|
|
* Get the Stripe client
|
|
* @returns StripeClient
|
|
*/
|
|
public function getClient(): StripeClient;
|
|
} |