public function addStripePaymentMethod(PaymentCollectionEvent $event)
{
if ($this->plugin->isUsable(['private_key', 'public_key'])) {
$stripeForm = $this->getStripeForm() . $this->getStripeScript();
$stripe = new PaymentMethod($this->plugin->getHash(), 'elcodi_plugin.stripe.name', 'elcodi_plugin.stripe.description', '', '', $stripeForm);
$event->addPaymentMethod($stripe);
}
}