Stripe for Craft Commerce icon

Stripe for Craft Commerce

Version 2.4.5

April 9, 2024
  • Fixed a PHP error that could occur when handling a webhook request. (#294)

Version 2.4.4.1

March 19, 2023
  • Fixed a PHP error that could occur when making a payment. (#226)

Version 2.4.4

January 25, 2022

Added

  • Added craft\commerce\stripe\gateways\PaymentIntents::EVENT_BEFORE_CONFIRM_PAYMENT_INTENT. (#221)

Version 2.4.3

January 25, 2022

Added

  • Added craft\commerce\stripe\models\forms\SwitchPlans::$quantity. (#189)

Fixed

  • Fixed a PHP error that could occur when a payment attempt failed. (#191)

Version 2.4.2

November 28, 2021

Fixed

  • Fixed a bug where it was not possible to save a Stripe customer record. (#186)

Version 2.4.1

November 16, 2021

Added

  • Added support for the payment_method.detached Stripe webhook event.

Changed

  • Improved the performance of a previous migration. (#185)

Fixed

  • Fixed a bug where customers could be incorrectly identified as a duplicate. (#97)
  • Fixed a bug where Stripe API requests weren't including any metadata changes made via craft\commerce\stripe\base\Gateway::EVENT_BUILD_GATEWAY_REQUEST. (#85)

Version 2.4.0

October 13, 2021

Added

  • Added support for the charge.refund.updated Stripe webhook event.

Changed

  • Stripe for Craft Commerce now requires Craft CMS 3.7.0 and Craft Commerce 3.4.5 or later.

Fixed

  • Fixed a bug where a refund could fail asynchronously.

Version 2.3.2.2

October 10, 2021

Fixed

  • Fixed a bug that prevented multiple payments on a single order. (#147)

Version 2.3.2.1

November 2, 2020

Fixed

  • Fixed a bug that caused additional Stripe gateways configured in the same installation to fail. (#124)

Version 2.3.2

September 24, 2020

Fixed

  • Fixed a bug where changes to metadata in the EVENT_BUILD_GATEWAY_REQUEST event were being overridden. (#120)
  • Fixed a bug where the billing address’ state was not being passed when using Payment Intents.

Version 2.3.1.1

June 17, 2020

Fixed

  • Fixed minor typo.

Version 2.3.1

June 17, 2020

Added

  • Added craft\commerce\stripe\gateways\Gateway::getTransactionHashFromWebhook() to support mutex lock when processing a webhook.

Version 2.3.0

April 14, 2020

Changed

  • Updated stripe-php dependency. (#95)
  • JavaScript SDK is now loaded at the end of the body.
  • Gateway handleWebhook() methods are now public.

Fixed

  • Fixed a bug that could cause viewport zooming on mobile devices. (#94)

Version 2.2.3

December 12, 2019

Fixed

  • Fixed a javascript error in Payment Intents paymentForm.js when using IE 11. (#92)

Version 2.2.2

November 11, 2019

Fixed

  • Fixed a PHP error when creating a new subscription plan. (#91)

Version 2.2.1

October 29, 2019

Fixed

  • Fixed a bug that caused the plan selection dropdown to have the incorrect item selected.
  • Fixed a bug that caused an order to be marked as complete multiple times with the “Stripe Charge” gateway.

Version 2.2.0

October 23, 2019

Fixed

  • Fixed a bug where Stripe webhook reponses could contain unnecessary JavaScript. (##86)

Version 2.1.2

September 4, 2019

Added

  • Added support for resolving subscription billing issues.
  • Added craft\commerce\stripe\models\forms\Subscription.
  • Added craft\commerce\stripe\models\forms\SwitchPlans::$billingCycleAnchor.
  • Added craft\commerce\stripe\services\Invoices::getUserInvoices().

Changed

  • Update Craft Commerce requirements to require Craft Commerce 2.2.
  • Improved support for specifying trial when starting a subscription.
  • Improved support for specifying billing cycle changes when switching subscription plans.

Fixed

  • Fixed a bug where payment form errors were not being caught and returned. (#75)
  • Fixed a PHP error caused by a change in the Stripe API.

Version 2.1.1

August 15, 2019

Fixed

  • Fixed a bug where payment forms would sometimes throw an error. (#59)
  • Fixed a PHP error when retrieving the subscriptions next payment amount. (#71)
  • Fixed a bug where failed 3DS authentications would have no error code and error message.

Version 2.1.0

July 24, 2019

Changed

  • Update Craft Commerce requirements to allow for Craft Commerce 3.

Fixed

  • Fixed a bug where Webhook Signing Secret setting could not be set to an environment variable. (#61)
  • Fixed a bug where Commerce wouldn't correctly refund purchases by guest users using Payment Intents gateway. (#64)

Version 2.0.1.2

July 8, 2019

Fixed

  • Fixed a bug where payment forms would not ensure that jQuery was present, before depending on it. (#63)

Version 2.0.1.1

May 30, 2019

 Fixed

  • Fixed an error with Payment Intents gateway where it was impossible to pay while not logged in some more. (#60)

Version 2.0.1

May 30, 2019

Changed

  • Country ISO code is now submitted to Stripe, instead of the country name. (#59)

 Fixed

  • Fixed an error with Payment Intents gateway where it was impossible to pay while not logged in. (#60)

Version 2.0.0

May 14, 2019

Added

  • Added the Stripe Payment Intents gateway, which is compatible with 3D Secure 2.
  • Added craft\commerce\stripe\base\Gateway.
  • Added craft\commerce\stripe\base\SubscriptionGateway.
  • Added craft\commerce\stripe\gateways\PaymentIntents.
  • Added craft\commerce\stripe\models\PaymentIntent.
  • Added craft\commerce\stripe\models\forms\PaymentIntent.
  • Added craft\commerce\stripe\records\PaymentIntent.
  • Added craft\commerce\stripe\responses\PaymentIntentResponse.
  • Added craft\commerce\stripe\services\Customers::getCustomerById().
  • Added craft\commerce\stripe\services\PaymentIntents.

Changed

  • Switched to Stripe API version 2019-03-14.
  • Renamed the Stripe gateway to “Stripe Charge”.
  • Renamed craft\commerce\stripe\models\forms\Payment to craft\commerce\stripe\models\forms\Charge.
  • Renamed craft\commerce\stripe\responses\PaymentResponse to craft\commerce\stripe\responses\ChargeResponse.
  • Renamed craft\commerce\stripe\web\PaymentResponse to craft\commerce\stripe\responses\ChargeResponse.

Deprecated

  • Deprecated craft\commerce\stripe\events\Receive3dsPayment.
  • Deprecated craft\commerce\stripe\gateways\Gateway.

Fixed

  • Fixed a bug where it was not possible to save a payment source if the customer had been deleted on Stripe. (#35).
  • Fixed a bug where the craft\commerce\services\Subscriptions::EVENT_AFTER_EXPIRE_SUBSCRIPTION event wouldn’t be triggered for subscriptions that were canceled immediately. (#47).

Version 1.2.2

April 30, 2019

Added

  • Added support for craft\commerce\base\SubscriptionResponseInterface::isInactive().

Changed

  • Stripe for Craft Commerce now requires Craft Commerce 2.1.4 or later.

Version 1.2.1

April 16, 2019

Added

  • Billing address information is now provided to Stripe on payment, if available. (#43)

Fixed

  • Fixed a bug where it was not possible to fetch customer data if the Secret API Key was set to an environment variable (#54) .

Version 1.2.0

March 12, 2019

Added

  • Added craft\commerce\stripe\services\Invoices::getInvoiceByReference().
  • Added craft\commerce\stripe\gateways\Gateway::refreshPaymentHistory().

Version 1.1.0

March 2, 2019

Added

  • The Secret API Key, Publishable API Key, and Webhook Signing Secret settings can now be set to environment variables.
  • Added craft\commerce\stripe\events\BuildGatewayRequestEvent::$request.

Changed

  • Stripe for Craft Commerce now requires Craft CMS 3.1.5 or later.
  • Stripe for Craft Commerce now requires Craft Commerce 2.0.0 or later.

Deprecated

  • Deprecated craft\commerce\stripe\events\BuildGatewayRequestEvent::$metadata. The new $request property should be used instead.

Fixed

  • Fixed an error that occurred when paying for an order on a console request.

Version 1.0.10

December 17, 2018

Changed

  • Switched to Stripe API version 2018-11-08.
  • Improved handling of asynchronous 3D Secure transaction webhooks for some edge cases.

Fixed

  • Fixed an error that could occur when changing a subscription’s plan. (#46)

Version 1.0.9

November 28, 2018

Added

  • craft\commerce\stripe\services\Invoices now fires a cancelable beforeSaveInvoice event.

Fixed

  • Fixed an error that occurred when calling craft\commerce\stripe\services\Customers::getCustomer().
  • Fixed an error that could occur when switching subscription plans. (#34)

Version 1.0.8

October 18, 2018

Added

  • Added craft\commerce\stripe\gateways\Gateway::EVENT_BEFORE_SUBSCRIBE, which is triggered before subscribing a customer to a subscription plan. (#31)

Changed

  • Stripe for Craft Commerce now requires Commerce 2.0.0-beta.12 or later.
  • Switched to Stripe API version 2018-09-24.
  • An exception is now thrown if webhook processing fails.

Version 1.0.7

September 26, 2018

Removed

  • Removed craft\commerce\stripe\gateways\Gateway::getSubscriptionFormHtml().

Fixed

  • Fixed an error that occurred when attempting to subscribe to a plan, if the trialDays parameter wasn’t set.

Version 1.0.6

September 20, 2018

Added

  • Added craft\commerce\stripe\gateways\Gateway::EVENT_RECEIVE_3DS_PAYMENT, which is triggered after a successful 3D Secure transaction.

Version 1.0.5

September 17, 2018

Fixed

  • Fixed a bug where it wasn’t always possible to pay with a credit card when using Stripe SDK 6.17.1. (#22)

Version 1.0.4

August 22, 2018

Changed

  • Switched to Stripe API version 2018-07-27.
  • Subscription plan listings are no longer limited to 10 plans.

Version 1.0.3

June 5, 2018

Fixed

  • Fixed a PHP error that occurred when subscribing a user to a plan. (#17)

Version 1.0.2

May 30, 2018

Added

  • Added support for paying via credit card tokens. (#9)
  • It’s now possible to pay on behalf of other users. (#12)

Version 1.0.1

April 4, 2018

Fixed

  • Fixed a PHP error.

Version 1.0.0

April 3, 2018
  • Initial release.