Releases: stripe/stripe-php
Releases · stripe/stripe-php
v17.7.0-beta.1
This release changes the pinned API version to 2025-08-27.preview
.
- #1888 Update generated code for beta
- Add support for
all
andretrieve
methods on resourceInvoicePayment
- Add support for
all
method on resourceMandate
- Add support for
applied
onV2.Core.Account.configuration.customer
,V2.Core.Account.configuration.merchant
,V2.Core.Account.configuration.recipient
,V2.Core.Account.configuration.storer
,V2\Core\Account.update().$params.configuration.customer
,V2\Core\Account.update().$params.configuration.merchant
,V2\Core\Account.update().$params.configuration.recipient
, andV2\Core\Account.update().$params.configuration.storer
- Add support for new values
ao_nif
,az_tin
,bd_etin
,cr_cpj
,cr_nite
,do_rcn
,gt_nit
,kz_bin
,mz_nuit
,pe_ruc
,pk_ntn
,sa_crn
, andsa_tin
on enumV2.Core.Account.identity.business_details.id_numbers[].type
- Add support for new values
ao_nif
,az_tin
,bd_brc
,bd_etin
,bd_nid
,cr_cpf
,cr_dimex
,cr_nite
,do_rcn
,gt_nit
,kz_iin
,mz_nuit
,pe_dni
,pk_cnic
,pk_snic
, andsa_tin
on enumsV2.Core.Account.identity.individual.id_numbers[].type
andV2.Core.Person.id_numbers[].type
- Change type of
Billing.AlertTriggered.value
fromlongInteger
todecimal_string
- Add support for
display_name
onV2.MoneyManagement.FinancialAccount
andV2\MoneyManagement\FinancialAccount.create().$params
- Add support for new value
currency_conversion
on enumsV2.MoneyManagement.Transaction.category
andV2.MoneyManagement.TransactionEntry.transaction_details.category
- Add support for
currency_conversion
onV2.MoneyManagement.Transaction.flow
andV2.MoneyManagement.TransactionEntry.transaction_details.flow
- Add support for new value
currency_conversion
on enumsV2.MoneyManagement.Transaction.flow.type
andV2.MoneyManagement.TransactionEntry.transaction_details.flow.type
- Add support for
payments
onBalanceSettings.update().$params
andBalanceSettings
- Remove support for
debit_negative_balances
,payouts
, andsettlement_timing
onBalanceSettings.update().$params
andBalanceSettings
- Add support for
mandate
onCharge.payment_method_details.pix
,PaymentAttemptRecord.payment_method_details.pix
, andPaymentRecord.payment_method_details.pix
- Add support for
coupon_data
onCheckout\Session.create().$params.discount
- Add support for
mandate_options
onCheckout.Session.payment_method_options.pix
,Checkout\Session.create().$params.payment_method_option.pix
,PaymentIntent.confirm().$params.payment_method_option.pix
,PaymentIntent.create().$params.payment_method_option.pix
,PaymentIntent.payment_method_options.pix
, andPaymentIntent.update().$params.payment_method_option.pix
- Change type of
Checkout.Session.payment_method_options.pix.setup_future_usage
,Checkout\Session.create().$params.payment_method_option.pix.setup_future_usage
,PaymentIntent.confirm().$params.payment_method_option.pix.setup_future_usage
,PaymentIntent.create().$params.payment_method_option.pix.setup_future_usage
,PaymentIntent.payment_method_options.pix.setup_future_usage
, andPaymentIntent.update().$params.payment_method_option.pix.setup_future_usage
fromliteral('none')
toenum('none'|'off_session')
- Add support for
amount
onMandate.multi_use
,PaymentAttemptRecord
, andPaymentRecord
- Add support for
currency
onMandate.multi_use
- Add support for
pix
onMandate.payment_method_details
,SetupAttempt.payment_method_details
,SetupIntent.confirm().$params.payment_method_option
,SetupIntent.create().$params.payment_method_option
,SetupIntent.payment_method_options
, andSetupIntent.update().$params.payment_method_option
- Add support for
limit
onPaymentAttemptRecord.all().$params
- Add support for
amount_authorized
,amount_refunded
, andapplication
onPaymentAttemptRecord
andPaymentRecord
- Add support for
processor_details
onPaymentAttemptRecord
,PaymentRecord.report_payment().$params
, andPaymentRecord
- Remove support for
payment_reference
onPaymentAttemptRecord
,PaymentRecord.report_payment().$params
, andPaymentRecord
- Add support for
installments
onPaymentAttemptRecord.payment_method_details.alma
andPaymentRecord.payment_method_details.alma
- Add support for
transaction_id
onPaymentAttemptRecord.payment_method_details.alma
,PaymentAttemptRecord.payment_method_details.amazon_pay
,PaymentAttemptRecord.payment_method_details.billie
,PaymentAttemptRecord.payment_method_details.kakao_pay
,PaymentAttemptRecord.payment_method_details.kr_card
,PaymentAttemptRecord.payment_method_details.naver_pay
,PaymentAttemptRecord.payment_method_details.payco
,PaymentAttemptRecord.payment_method_details.revolut_pay
,PaymentAttemptRecord.payment_method_details.samsung_pay
,PaymentAttemptRecord.payment_method_details.satispay
,PaymentRecord.payment_method_details.alma
,PaymentRecord.payment_method_details.amazon_pay
,PaymentRecord.payment_method_details.billie
,PaymentRecord.payment_method_details.kakao_pay
,PaymentRecord.payment_method_details.kr_card
,PaymentRecord.payment_method_details.naver_pay
,PaymentRecord.payment_method_details.payco
,PaymentRecord.payment_method_details.revolut_pay
,PaymentRecord.payment_method_details.samsung_pay
, andPaymentRecord.payment_method_details.satispay
- Add support for
location
andreader
onPaymentAttemptRecord.payment_method_details.paynow
andPaymentRecord.payment_method_details.paynow
- Add support for
latest_active_mandate
onPaymentMethod
- Change
Payout.payout_method
to be required - Add support for
metadata
andperiod
onQuotePreviewSubscriptionSchedule.phases[].add_invoice_items[]
- Add support for
pix_display_qr_code
onSetupIntent.next_action
- Add support for
reader_security
onTerminal.Configuration
,Terminal\Configuration.create().$params
, andTerminal\Configuration.update().$params
- Add support for error codes
customer_session_expired
andindia_recurring_payment_mandate_canceled
onQuotePreviewInvoice.last_finalization_error
- Add support for
v17.7.0-alpha.1
- #1897 Use the right API version 2025-08-27.preview
- #1892 Update generated code for private-preview
- Add support for
attach_cadence
method on resourceSubscription
- Add support for
currency
andexternal_customer_id
onBilling.AlertTriggered
- Add support for
custom_pricing_unit
onBilling.AlertTriggered
,Billing.CreditBalanceSummary.balances[].available_balance
,Billing.CreditBalanceSummary.balances[].ledger_balance
,Billing.CreditBalanceTransaction.credit.amount
,Billing.CreditBalanceTransaction.debit.amount
,Billing.CreditGrant.amount
, andBilling\CreditGrant.create().$params.amount
- Add support for
customer
onBilling\Alert.all().$params
- Change type of
Billing.Alert.alert_type
,Billing\Alert.all().$params.alert_type
, andBilling\Alert.create().$params.alert_type
fromliteral('usage_threshold')
toenum('credit_balance_threshold'|'usage_threshold')
- Add support for
credit_balance_threshold
onBilling.Alert
andBilling\Alert.create().$params
- Add support for
billable_items
onBilling.CreditGrant.applicability_config.scope
,Billing\CreditBalanceSummary.retrieve().$params.filter.applicability_scope
, andBilling\CreditGrant.create().$params.applicability_config.scope
- Change type of
Billing.CreditBalanceSummary.balances[].available_balance.type
,Billing.CreditBalanceSummary.balances[].ledger_balance.type
,Billing.CreditBalanceTransaction.credit.amount.type
,Billing.CreditBalanceTransaction.debit.amount.type
,Billing.CreditGrant.amount.type
, andBilling\CreditGrant.create().$params.amount.type
fromliteral('monetary')
toenum('custom_pricing_unit'|'monetary')
- Add support for
license_fee_subscription_details
andrate_card_subscription_details
onInvoiceItem.parent
andInvoiceLineItem.parent
- Change type of
InvoiceItem.parent.type
fromliteral('subscription_details')
toenum('license_fee_subscription_details'|'rate_card_subscription_details'|'subscription_details')
- Add support for
license_fee_details
andrate_card_rate_details
onInvoiceItem.pricing
andInvoiceLineItem.pricing
- Change type of
InvoiceItem.pricing.type
andInvoiceLineItem.pricing.type
fromliteral('price_details')
toenum('license_fee_details'|'price_details'|'rate_card_rate_details')
- Add support for
billing_cadence
onInvoice.create_preview().$params
,Subscription.create().$params
, andSubscription
- Add support for
billing_cadence_details
onInvoice.parent
andQuotePreviewInvoice.parent
- Add support for new value
billing_cadence_details
on enumsInvoice.parent.type
andQuotePreviewInvoice.parent.type
- Add support for new values
license_fee_subscription_details
andrate_card_subscription_details
on enumInvoiceLineItem.parent.type
- Add support for new resources
V2.Billing.BillSettingVersion
,V2.Billing.BillSetting
,V2.Billing.Cadence
,V2.Billing.CollectionSettingVersion
,V2.Billing.CollectionSetting
,V2.Billing.CustomPricingUnit
,V2.Billing.IntentAction
,V2.Billing.Intent
,V2.Billing.LicenseFeeSubscription
,V2.Billing.LicenseFeeVersion
,V2.Billing.LicenseFee
,V2.Billing.LicensedItem
,V2.Billing.MeteredItem
,V2.Billing.PricingPlanComponent
,V2.Billing.PricingPlanSubscription
,V2.Billing.PricingPlanVersion
,V2.Billing.PricingPlan
,V2.Billing.Profile
,V2.Billing.RateCardRate
,V2.Billing.RateCardSubscription
,V2.Billing.RateCardVersion
,V2.Billing.RateCard
,V2.Billing.ServiceAction
,V2.Core.ClaimableSandbox
,V2.Reporting.ReportRun
,V2.Reporting.Report
, andV2.Tax.AutomaticRule
- Add support for
create
,deactivate
,find
,retrieve
, andupdate
methods on resourceV2.Tax.AutomaticRule
- Add support for
create
andretrieve
methods on resourcesV2.Billing.ServiceAction
andV2.Reporting.ReportRun
- Add support for
retrieve
method on resourcesV2.Billing.LicenseFeeSubscription
andV2.Reporting.Report
- Add support for
create
method on resourceV2.Core.ClaimableSandbox
- Add support for
all
,cancel
,create
,retrieve
, andupdate
methods on resourcesV2.Billing.Cadence
andV2.Billing.RateCardSubscription
- Add support for
all
,create
,retrieve
, andupdate
methods on resourcesV2.Billing.BillSetting
,V2.Billing.CollectionSetting
,V2.Billing.CustomPricingUnit
,V2.Billing.LicenseFee
,V2.Billing.LicensedItem
,V2.Billing.MeteredItem
,V2.Billing.PricingPlan
,V2.Billing.Profile
, andV2.Billing.RateCard
- Add support for
all
andretrieve
methods on resourcesV2.Billing.BillSettingVersion
,V2.Billing.CollectionSettingVersion
,V2.Billing.IntentAction
,V2.Billing.LicenseFeeVersion
,V2.Billing.PricingPlanSubscription
,V2.Billing.PricingPlanVersion
, andV2.Billing.RateCardVersion
- Add support for
all
,create
,delete
, andretrieve
methods on resourceV2.Billing.RateCardRate
- Add support for
all
,create
,delete
,retrieve
, andupdate
methods on resourceV2.Billing.PricingPlanComponent
- Add support for
all
,cancel
,commit
,create
,release_reservation
,reserve
, andretrieve
methods on resourceV2.Billing.Intent
- Add support for
changes
onV2.Event
- Add support for thin events
V2BillingCadenceBilledEvent
,V2BillingCadenceCanceledEvent
,V2BillingCadenceCreatedEvent
, andV2BillingCadenceErroredEvent
with related objectV2.Billing.Cadence
- Add support for thin events
V2BillingLicenseFeeCreatedEvent
andV2BillingLicenseFeeUpdatedEvent
with related objectV2.Billing.LicenseFee
- Add support for thin event
V2BillingLicenseFeeVersionCreatedEvent
with related objectV2.Billing.LicenseFeeVersion
- Add support for thin events
V2BillingLicensedItemCreatedEvent
andV2BillingLicensedItemUpdatedEvent
with related objectV2.Billing.LicensedItem
- Add support for thin events
V2BillingMeteredItemCreatedEvent
andV2BillingMeteredItemUpdatedEvent
with related objectV2.Billing.MeteredItem
- Add support for thin events
V2BillingPricingPlanCreatedEvent
andV2BillingPricingPlanUpdatedEvent
with related objectV2.Billing.PricingPlan
- Add support for thin events
V2BillingPricingPlanComponentCreatedEvent
andV2BillingPricingPlanComponentUpdatedEvent
with related objectV2.Billing.PricingPlanComponent
- Add support for thin events
V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent
,V2BillingPricingPlanSubscriptionCollectionCurrentEvent
,V2BillingPricingPlanSubscriptionCollectionPastDueEvent
,V2BillingPricingPlanSubscriptionCollectionPausedEvent
,V2BillingPricingPlanSubscriptionCollectionUnpaidEvent
,V2BillingPricingPlanSubscriptionServicingActivatedEvent
,V2BillingPricingPlanSubscriptionServicingCanceledEvent
, andV2BillingPricingPlanSubscriptionServicingPausedEvent
with related objectV2.Billing.PricingPlanSubscription
- Add support for thin event
V2BillingPricingPlanVersionCreatedEvent
with related objectV2.Billing.PricingPlanVersion
- Add support for thin events
V2BillingRateCardCreatedEvent
andV2BillingRateCardUpdatedEvent
with related objectV2.Billing.RateCard
- Add support for thin event
V2BillingRateCardRateCreatedEvent
with related objectV2.Billing.RateCardRate
- Add support for thin events
V2BillingRateCardSubscriptionActivatedEvent
,V2BillingRateCardSubscriptionCanceledEvent
,V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent
,V2BillingRateCardSubscriptionCollectionCurrentEvent
,V2BillingRateCardSubscriptionCollectionPastDueEvent
,V2BillingRateCardSubscriptionCollectionPausedEvent
,V2BillingRateCardSubscriptionCollectionUnpaidEvent
,V2BillingRateCardSubscriptionServicingActivatedEvent
,V2BillingRateCardSubscriptionServicingCanceledEvent
, andV2BillingRateCardSubscriptionServicingPausedEvent
with related objectV2.Billing.RateCardSubscription
- Add support for thin event
V2BillingRateCardVersionCreatedEvent
with related objectV2.Billing.RateCardVersion
- Add support for thin events
V2CoreHealthApiErrorFiringEvent
,V2CoreHealthApiErrorResolvedEvent
,V2CoreHealthApiLatencyFiringEvent
,V2CoreHealthApiLatencyResolvedEvent
,V2CoreHealthAuthorizationRateDropFiringEvent
,V2CoreHealthAuthorizationRateDropResolvedEvent
,V2CoreHealthEventGenerationFailureResolvedEvent
,V2CoreHealthFraudRateIncreasedEvent
,V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent
,V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent
,V2CoreHealthPaymentMethodErrorFiringEvent
,V2CoreHealthPaymentMethodErrorResolvedEvent
,V2CoreHealthTrafficVolumeDropFiringEvent
,V2CoreHealthTrafficVolumeDropResolvedEvent
,V2CoreHealthWebhookLatencyFiringEvent
, andV2CoreHealthWebhookLatencyResolvedEvent
- Add support for thin events
V2ReportingReportRunCreatedEvent
,V2ReportingReportRunFailedEvent
,V2ReportingReportRunSucceededEvent
, andV2ReportingReportRunUpdatedEvent
with related objectV2.Reporting.ReportRun
- Add support for error type
RateLimitException
- Adds
getStripeParam
andsetStripeParam
to ApiErrorException base class. Currently, this is only used byRateLimitExceptions
returned from v2 services.
- Add support for
v17.6.0
- #1895 Add section on private preview SDKs in readme
- #1890 Update generated code. This release changes the pinned API version to
2025-08-27.basil
.- Add support for
balance_report
,payout_details
, andpayout_reconciliation_report
onAccountSession.components
andAccountSession.create().$params.component
- Add support for
name
onBillingPortal.Configuration
,BillingPortal\Configuration.create().$params
, andBillingPortal\Configuration.update().$params
- Add support for
installments
onCharge.payment_method_details.alma
- Add support for
transaction_id
onCharge.payment_method_details.alma
,Charge.payment_method_details.amazon_pay
,Charge.payment_method_details.billie
,Charge.payment_method_details.kakao_pay
,Charge.payment_method_details.kr_card
,Charge.payment_method_details.naver_pay
,Charge.payment_method_details.payco
,Charge.payment_method_details.revolut_pay
,Charge.payment_method_details.samsung_pay
, andCharge.payment_method_details.satispay
- Add support for
location
andreader
onCharge.payment_method_details.paynow
- Add support for
amount_includes_iof
onCheckout.Session.payment_method_options.pix
,Checkout\Session.create().$params.payment_method_option.pix
,PaymentIntent.confirm().$params.payment_method_option.pix
,PaymentIntent.create().$params.payment_method_option.pix
,PaymentIntent.payment_method_options.pix
, andPaymentIntent.update().$params.payment_method_option.pix
- Add support for new values
block
andresolution
on enumDispute.payment_method_details.card.case_type
- Add support for new value
terminal_android_apk
on enumFile.purpose
- Add support for
metadata
andperiod
onInvoice.create_preview().$params.schedule_detail.phase.add_invoice_item
,Subscription.create().$params.add_invoice_item
,Subscription.update().$params.add_invoice_item
,SubscriptionSchedule.create().$params.phase.add_invoice_item
,SubscriptionSchedule.phases[].add_invoice_items[]
, andSubscriptionSchedule.update().$params.phase.add_invoice_item
- Add support for
exp_month
andexp_year
onIssuing\Card.create().$params
- Add support for
excluded_payment_method_types
onPaymentIntent.create().$params
andPaymentIntent
- Add support for
payout_method
onPayout.create().$params
andPayout
- Add support for
mxn
onTerminal.Configuration.tipping
,Terminal\Configuration.create().$params.tipping
, andTerminal\Configuration.update().$params.tipping
- Add support for
card
onTerminal\Reader.present_payment_method().$params
- Add support for error codes
customer_session_expired
andindia_recurring_payment_mandate_canceled
onInvoice.last_finalization_error
,PaymentIntent.last_payment_error
,SetupAttempt.setup_error
,SetupIntent.last_setup_error
, andStripeError
- Add support for
- #1894 Add getter for Stripe Account on BaseStripeClient
- Add
getStripeAccount
method onBaseStripeClient
to retrieve Stripe Account ID from aStripeClient
instance.
- Add
v17.6.0-beta.2
- #1891 Bring back invoice payments APIs that were missing in the public preview SDKs
- Add support for new resource
InvoicePayment
- Add support for
all
andretrieve
methods on resourceInvoicePayment
- Add support for new resource
v17.6.0-beta.1
This release changes the pinned API version to 2025-07-30.preview
.
- #1885 Update generated code for beta
- Add support for new resources
Billing.MeterUsageRow
,Billing.MeterUsage
, andTerminal.OnboardingLink
- Add support for
retrieve
method on resourceBilling.MeterUsage
- Add support for
create
method on resourceTerminal.OnboardingLink
- Add support for
smart_disputes
onDispute
- Add support for new value
upi
on enumsInvoice.payment_settings.payment_method_types
,QuotePreviewInvoice.payment_settings.payment_method_types
, andSubscription.payment_settings.payment_method_types
- Add support for thin event
V2CoreAccountLinkReturnedEvent
- Add support for thin event
V2MoneyManagementPayoutMethodUpdatedEvent
with related objectV2.MoneyManagement.PayoutMethod
- Remove support for thin event
V2CoreAccountLinkCompletedEvent
- Remove support for thin event
V2OffSessionPaymentRequiresCaptureEvent
with related objectV2.Payments.OffSessionPayment
- Add support for new resources
v17.5.0
This release changes the pinned API version to 2025-07-30.basil
.
- #1887 Update generated code
- Add support for
origin_context
onCheckout.Session
- Add support for
- #1881 Ensure compatibility with POST on older versions of libcurl
- Fixes an issue with older versions of php/libcurl where certain SDK calls that have empty POST bodies will result in a 400 Bad Request returned from the server.
v17.5.0-beta.2
- #1886 Pull in V2 FinancialAccount changes for June release
- Add support for
close
andcreate
methods on resourceV2.MoneyManagement.FinancialAccount
- Add support for new value
storer
on enumV2.Core.Account.applied_configurations
- Add support for
status_details
onV2.MoneyManagement.FinancialAccount
- Add support for thin events
V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent
andV2CoreAccountIncludingConfigurationStorerUpdatedEvent
with related objectV2.Core.Account
- Add support for error types
AlreadyExistsException
andNonZeroBalanceException
- Add support for
v17.5.0-beta.1
- #1876 Update generated code for beta
- Change type of
Quote.subscription_data.billing_mode
fromenum('classic'|'flexible')
toQuotesResourceSubscriptionDataBillingMode
- Add support for new value
crypto
on enumQuotePreviewInvoice.payment_settings.payment_method_types
- Change type of
QuotePreviewSubscriptionSchedule.billing_mode
,Subscription.billing_mode
, andSubscriptionSchedule.billing_mode
fromenum('classic'|'flexible')
toSubscriptionsResourceBillingMode
- Remove support for
billing_mode_details
onSubscription
- Add support for new value
xx
on enumsV2.Core.Account.identity.country
,V2.Core.Person.additional_addresses[].country
,V2.Core.Person.address.country
, andV2.MoneyManagement.FinancialAccount.country
- Add support for new value
xx
on enumV2.Core.Person.nationalities
- Add support for
metadata
onV2.MoneyManagement.FinancialAccount
- Remove support for
description
onV2.MoneyManagement.FinancialAccount
- Add support for new value
pending
on enumV2.MoneyManagement.FinancialAccount.status
- Remove support for
attempts
onV2.Payments.OffSessionPayment
- Change type of
V2.Payments.OffSessionPayment.transfer_data.amount
frominteger
tonullable(integer)
- Change type of
V2.MoneyManagement.ReceivedCredit.balance_transfer.type
fromliteral('payout_v1')
toenum('outbound_payment'|'outbound_transfer'|'payout_v1')
- Change type of
V2.MoneyManagement.ReceivedCredit.balance_transfer.payout_v1
fromstring
tonullable(string)
- Change type of
v17.4.0
- #1880 Update generated code
- Add support for
migrate
method on resourceSubscription
- Add support for
collect_payment_method
andconfirm_payment_intent
methods on resourceTerminal.Reader
- Add support for new value
crypto
on enumsConfirmationToken.payment_method_preview.type
andPaymentMethod.type
- Change type of
Dispute.enhanced_eligibility_types
fromliteral('visa_compelling_evidence_3')
toenum('visa_compelling_evidence_3'|'visa_compliance')
- Add support for new value
terminal.reader.action_updated
on enumEvent.type
- Add support for
related_person
onIdentity.VerificationSession
- Add support for new value
crypto
on enumsInvoice.payment_settings.payment_method_types
andSubscription.payment_settings.payment_method_types
- Add support for
crypto
onPaymentMethod
- Add support for new value
buut
on enumPaymentMethod.ideal.bank
- Add support for new value
BUUTNL2A
on enumPaymentMethod.ideal.bic
- Add support for
billing_mode
onSubscriptionSchedule
andSubscription
- Add support for new values
collect_payment_method
andconfirm_payment_intent
on enumTerminal.Reader.action.type
- Add support for snapshot event
TERMINAL_READER_ACTION_UPDATED
with resourceTerminal.Reader
- Add support for
- #1878 Update generated code
- Add constant
CURRENT_MAJOR
inApiVersion
- Add constant
v17.4.0-beta.2
- #1883 Pull in OffSessionPayment changes for the May release