<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hakito / cakephp-stripe-payment-intents-plugin example snippets
public function bootstrap(): void
{
// Call parent to load bootstrap from files.
parent::bootstrap();
$this->addPlugin(\StripePaymentIntents\Plugin::class, ['routes' => true]);
}
\Cake\Event\EventManager::instance()->on('StripePaymentIntents.Event',
function (\Cake\Event\Event $event, \Stripe\Event $stripeEvent)
{
return ['handled' => true]; // If you don't set the handled flag to true
// the plugin will throw an exception
});
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.