A newer version of

Freeform

is available.

Try Freeform 5 now →

Freeform Freeform for Craft

Developer Events

Stripe Payment Events

To extend Freeform's Stripe Payments, use the events listed below:

When updating Payment Intent data

This event lets you add your own data that gets sent to Stripe for Payment Intents (to replace Payment for FF Submission #123):

use Solspace\Freeform\Integrations\PaymentGateways\Stripe;
use Solspace\Freeform\Events\Payments\UpdateDataEvent;

Event::on(
  Stripe::class,
  Stripe::EVENT_UPDATE_PAYMENT_INTENT_DATA,
  function (UpdateDataEvent $event) {
    $event->addData('description', 'My custom payment intent description');
  }
)
1
2
3
4
5
6
7
8
9
10

When updating Subscription data

This event lets you add your own data that gets sent to Stripe for Subscriptions:

use Solspace\Freeform\Integrations\PaymentGateways\Stripe;
use Solspace\Freeform\Events\Payments\UpdateDataEvent;

Event::on(
  Stripe::class,
  Stripe::EVENT_UPDATE_SUBSCRIPTION_DATA,
  function (UpdateDataEvent $event) {
    $event->addData('description', 'My custom subscription description');
  }
)
1
2
3
4
5
6
7
8
9
10