flamarkt/payment-stripe

Stripe payment method.

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:flarum-extension

dev-main 2023-04-06 17:55 UTC

This package is auto-updated.

Last update: 2024-11-06 21:21:04 UTC


README

Stripe payment method.

This extension will receive some more radical changes in the future.

Currently, the money is captured prior to order creation, which can cause situations where money has been captured but no order has been created.

Card-only mode was created with the intent of having a custom 3DS confirmation modal, but that's in fact not really needed since Stripe.js has its own modal that works with the payment element.

Depending on the Stripe payment method, ordre creation might happen through normal API submission or through a redirect. When using a redirect, other extensions will not work (for instance, using balance payment together with Stripe).

Checkout mode is experimental, currently a single product is added with the amount corresponding to the order, but it's planned to make it work with the actual product list synced to Stripe.

There is still some CSRF protection missing at this time for the redirect-based solutions. Nothing too dangerous but an external website could mess up existing payment intents and prevent a checkout from completing successfully.

Payment mehtod is currently hard-coded to cards but all Stripe payment methods should work in the future.