PHP code example of davidjeddy / stripe-command-bus-interface
1. Go to this page and download the library: Download davidjeddy/stripe-command-bus-interface library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
davidjeddy / stripe-command-bus-interface example snippets
# basic command bus class to handler
$response = $commandBus->handle(
# the Stripe Command Bus core class. All requests pass through this class.
new CreateHandler([
# the Stripe data is passed to the command bus handlers as the `data` property
'data' => [
'description' => 'Test Co. LLC',
'email' => '[email protected]',
]
])
);