diff --git a/classes/PaymentMethod/BlikMethod.php b/classes/PaymentMethod/BlikMethod.php new file mode 100644 index 0000000..bede8c7 --- /dev/null +++ b/classes/PaymentMethod/BlikMethod.php @@ -0,0 +1,80 @@ +getStripeApi(); + $session = $api->createCheckoutSession( + $cart, + $this->getMethodId(), + [\Stripe\PaymentMethod::TYPE_BLIK], + [] + ); + $metadata = PaymentMetadata::createForSession($this->getMethodId(), $cart, $session); + return ExecutionResult::redirect($metadata, $session->url); + } catch (ApiErrorException $e) { + return $this->handleApiException($e); + } + } + + + /** + * @return string + */ + public function getName(): string + { + return $this->l('Blik', 'stripe'); + } +} \ No newline at end of file diff --git a/views/img/blik.png b/views/img/blik.png new file mode 100644 index 0000000..5328ff2 Binary files /dev/null and b/views/img/blik.png differ