Releases: stripe/stripe-php
Releases Β· stripe/stripe-php
v17.4.0-beta.1
This release changes the pinned API version to 2025-05-28.preview
.
-
#1864 Update generated code for beta
Breaking changes
- Remove support for deprecated previews
- Remove support for resources
Billing.MeterErrorReport
,GiftCards.Card
,GiftCards.Transaction
, andPrivacy.RedactionJobRootObjects
- Remove support for
all
,create
,retrieve
,update
, andvalidate
methods on resourceGiftCards.Card
- Remove support for
all
,cancel
,confirm
,create
,retrieve
, andupdate
methods on resourceGiftCards.Transaction
- Remove support for
provisioning
onProduct
- Remove support for snapshot event
BILLING_METER_ERROR_REPORT_TRIGGERED
with resourceBilling.MeterErrorReport
- Remove support for error codes
gift_card_balance_insufficient
,gift_card_code_exists
, andgift_card_inactive
onQuotePreviewInvoice.last_finalization_error
- Remove support for resources
- Remove support for
amount_remaining
andcredits
onOrder
- Change type of
PaymentAttemptRecord.metadata
andPaymentRecord.metadata
fromnullable(map(string: string))
tomap(string: string)
- Remove support for
async_workflows
onPaymentIntent
- Change type of
Privacy.RedactionJob.objects
from$Privacy.RedactionJobRootObjects
toRedactionResourceRootObjects
- Change type of
Privacy.RedactionJob.status
fromstring
toenum
- Change type of
Privacy.RedactionJob.validation_behavior
fromstring
toenum('error'|'fix')
- Change type of
Privacy.RedactionJobValidationError.code
fromstring
toenum
- Change type of
Privacy.RedactionJobValidationError.erroring_object
frommap(string: string)
toRedactionResourceErroringObject
- Remove support for values
credits_attributed_to_debits
andlegacy_prorations
from enumsQuote.subscription_data.billing_mode
,QuotePreviewSubscriptionSchedule.billing_mode
,Subscription.billing_mode
, andSubscriptionSchedule.billing_mode
- Remove support for
status_details
andstatus
onTax.Association
Other changes
- Add support for
migrate
method on resourceSubscription
- Add support for
institution
onFinancialConnections.Account
- Add support for
countries
onFinancialConnections.Institution
- Add support for
hooks
onPaymentIntent
- Add support for
livemode
onPrivacy.RedactionJob
- Add support for new values
classic
andflexible
on enumsQuote.subscription_data.billing_mode
,QuotePreviewSubscriptionSchedule.billing_mode
,Subscription.billing_mode
, andSubscriptionSchedule.billing_mode
- Add support for
billing_mode_details
onSubscription
- Add support for
tax_transaction_attempts
onTax.Association
- Add support for error code
forwarding_api_upstream_error
onQuotePreviewInvoice.last_finalization_error
- Remove support for deprecated previews
v17.3.0
This release changes the pinned API version to 2025-05-28.basil
.
- #1871 Update generated code
- Add support for
attach_payment
method on resourceInvoice
- Add support for
collect_inputs
method on resourceTerminal.Reader
- Add support for
succeed_input_collection
andtimeout_input_collection
test helper methods on resourceTerminal.Reader
- Add support for
refund_and_dispute_prefunding
onBalance
- Add support for
balance_type
onBalanceTransaction
- Add support for
post_payment_amount
andpre_payment_amount
onCreditNote
- Add support for new value
mixed
on enumCreditNote.type
- Add support for new value
invoice_payment.paid
on enumEvent.type
- Add support for
kakao_pay
,kr_card
,naver_pay
,payco
, andsamsung_pay
onPaymentMethodConfiguration
- Add support for
billing_thresholds
onSubscriptionItem
andSubscription
- Add support for
metadata
onTax.CalculationLineItem
- Add support for new value
collect_inputs
on enumTerminal.Reader.action.type
- Add support for new value
simulated_stripe_s700
on enumTerminal.Reader.device_type
- Add support for snapshot event
INVOICE_PAYMENT_PAID
with resourceInvoicePayment
- Add support for error code
forwarding_api_upstream_error
onInvoice.last_finalization_error
,PaymentIntent.last_payment_error
,SetupAttempt.setup_error
,SetupIntent.last_setup_error
, andStripeError
- Add support for
v17.2.1
v17.3.0-beta.1
-
#1859 Update generated code for beta
This release changes the pinned API version to2025-04-30.preview
.- Add support for new value
balance_settings.updated
on enumEvent.type
- Add support for new values
aw_tin
,az_tin
,bd_bin
,bf_ifu
,bj_ifu
,cm_niu
,cv_nif
,et_tin
,kg_tin
, andla_tin
on enumQuotePreviewInvoice.customer_tax_ids[].type
- Add support for
billing_mode
onQuotePreviewSubscriptionSchedule
,SubscriptionSchedule
, andSubscription
- Add support for new value
v17.2.0
This release changes the pinned API version to 2025-04-30.basil
.
- #1839 Update generated code
- Add support for new value
tax_id_prohibited
on enumsInvoice.last_finalization_error.code
,PaymentIntent.last_payment_error.code
,SetupAttempt.setup_error.code
,SetupIntent.last_setup_error.code
, andStripeError.code
- Add support for
wallet_options
onCheckout.Session
- Add support for
context
onEvent
- Add support for new values
aw_tin
,az_tin
,bd_bin
,bf_ifu
,bj_ifu
,cm_niu
,cv_nif
,et_tin
,kg_tin
, andla_tin
on enumsInvoice.customer_tax_ids[].type
andTaxId.type
- Add support for new value
affirm
on enumsInvoice.payment_settings.payment_method_types
andSubscription.payment_settings.payment_method_types
- Add support for
pix
onPaymentMethodConfiguration
- Add support for
klarna
onPaymentMethodDomain
- Add support for
us_cfpb_data
onPerson
- Add support for
pending_reason
onRefund
- Change type of
Tax.CalculationLineItem.reference
fromnullable(string)
tostring
- Add support for new value
- #1857 Include new PHP 8.3 and 8.4 in CI
- #1856 Faster parallel runner for PHP formatter
v17.2.0-beta.4
- #1855 Update generated code for beta
- Add support for new resources
FxQuote
andPaymentIntentAmountDetailsLineItem
- Add support for
all
,create
, andretrieve
methods on resourceFxQuote
- Remove support for
attach_payment_intent
method on resourceInvoice
- Add support for
script
andtype
onCoupon
- Add support for new value
fx_quote.expired
on enumEvent.type
- Add support for new value
affirm
on enumsInvoice.payment_settings.payment_method_types
,QuotePreviewInvoice.payment_settings.payment_method_types
, andSubscription.payment_settings.payment_method_types
- Add support for
fx_quote
onPaymentIntent
andTransfer
- Add support for
pix
onPaymentMethodConfiguration
- Add support for
us_cfpb_data
onPerson
- Add support for
pending_reason
onRefund
- Add support for snapshot event
FX_QUOTE_EXPIRED
with resourceFxQuote
- Add support for new resources
v17.2.0-beta.3
-
#1849 Update generated code for beta
Breaking changes
- Change type of
V2.MoneyManagement.ReceivedDebit.status_transitions
froman object
tonullable(an object)
- Remove support for values
bank_accounts.local_uk
,bank_accounts.wire_uk
,cards_uk
, andcrypto_wallets_v2
from enumEventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability
Additions
- Add support for new resources
Privacy.RedactionJobRootObjects
,Privacy.RedactionJobValidationError
, andPrivacy.RedactionJob
- Add support for
all
,cancel
,create
,retrieve
,run
,update
, andvalidate
methods on resourceRedactionJob
- Add support for
all
andretrieve
methods on resourceRedactionJobValidationError
- Add support for new value
tax_id_prohibited
on enumsInvoice.last_finalization_error.code
,PaymentIntent.last_payment_error.code
,QuotePreviewInvoice.last_finalization_error.code
,SetupAttempt.setup_error.code
,SetupIntent.last_setup_error.code
, andStripeError.code
- Add support for new value
fixed_term_loan
on enumCapital.FinancingOffer.type
- Add support for
wallet_options
onCheckout.Session
- Add support for new values
privacy.redaction_job.canceled
,privacy.redaction_job.created
,privacy.redaction_job.ready
,privacy.redaction_job.succeeded
, andprivacy.redaction_job.validation_error
on enumEvent.type
- Add support for
klarna
onPaymentMethodDomain
- Change type of
Tax.CalculationLineItem.reference
fromnullable(string)
tostring
- Change type of
-
#1851 Handle external_account field
- Changes
external_account
field inExternalAccountService
from astring
to a union type.
- Changes
v17.2.0-beta.2
- #1847 Remove stdClass from object shapes
- Remove intersection with
stdClass
in resource properties and fixedinstanceof
checks.
- Remove intersection with
v17.1.1
- #1847 Remove stdClass from object shapes
- Remove intersection with
stdClass
in resource properties and fixedinstanceof
checks.
- Remove intersection with
v17.2.0-beta.1
-
#1830 Update logic for Stripe::addBetaVersion
- Stripe::addBetaVersion will use the highest version number used for a beta feature instead of throwing an
Exception
on a conflict as it had done previously.
- Stripe::addBetaVersion will use the highest version number used for a beta feature instead of throwing an
-
#1814, #1840 Update generated code for beta
This release changes the pinned API version to
2025-03-31.preview
Breaking Changes
- Remove support for values
repeating
andvariable
from enumCoupon.duration
- Remove support for
amount_overpaid
onInvoicePayment
- Remove support for values
out_of_band_payment
andpayment_record
from enumInvoicePayment.payment.type
- Remove support for
interchange_fees
,net_total
,network_fees
, andtransaction_volume
onIssuing.Settlement
- Remove support for
application_fee_amount
,discount
,paid_out_of_band
,paid
,payment_intent
,quote
,subscription_details
,subscription_proration_date
,tax
,total_tax_amounts
, andtransfer_data
onQuotePreviewInvoice
- Change type of
PaymentAttemptRecord.payment_method_details.type
andPaymentRecord.payment_method_details.type
fromliteral('custom')
tostring
- Change type of
PaymentAttemptRecord.payment_record
fromstring
tonullable(string)
- Change type of
PaymentRecord.latest_payment_attempt_record
fromstring
tonullable(string)
Additions
- Add support for new value
repeating
on enumCoupon.duration
- Add support for new resources
BalanceSettings
- Add support for
retrieve
andupdate
methods on resourceBalanceSettings
- Add support for
all
,create
,delete
,retrieve
, andupdate
methods on a newExternalAccountService
class to access cards and bank accounts made available in the new pathv1/external_accounts
. Access this viaStripeClient.externalAccounts
- Add support for new values
stripe_balance_payment_debit_reversal
andstripe_balance_payment_debit
on enumBalanceTransaction.type
- Add support for
customer_account
onBilling.CreditBalanceSummary
,Billing.CreditGrant
,BillingPortal.Session
,CashBalance
,Checkout.Session
,CreditNote
,CustomerBalanceTransaction
,CustomerCashBalanceTransaction
,CustomerSession
,Customer
,Discount
,InvoiceItem
,Invoice
,PaymentIntent
,PaymentMethod
,PromotionCode
,QuotePreviewInvoice
,QuotePreviewSubscriptionSchedule
,Quote
,SetupAttempt
,SetupIntent
,SubscriptionSchedule
,Subscription
, andTaxId
- Add support for
tax_calculation_reference
onCreditNoteLineItem
,InvoiceLineItem
, andLineItem
- Add support for
context
onEvent
- Add support for
related_customer_account
onIdentity.VerificationSession
- Add support for
network_data
onIssuing.DisputeSettlementDetail
- Add support for
interchange_fees_amount
,net_total_amount
,network_fees_amount
,other_fees_amount
,other_fees_count
, andtransaction_amount
onIssuing.Settlement
- Add support for
reported_by
onPaymentAttemptRecord
- Add support for
stripe_balance
onPaymentMethod
- Add support for
payout_method
onPayout
- Add support for
confirmation_secret
,parent
, andtotal_taxes
onQuotePreviewInvoice
- Add support for new values
forwarding_api_retryable_upstream_error
,setup_intent_mobile_wallet_unsupported
,v2_account_disconnection_unsupported
, andv2_account_missing_configuration
on enumQuotePreviewInvoice.last_finalization_error.code
- Add support for new values
klarna
,nz_bank_account
, andstripe_balance
on enumQuotePreviewInvoice.payment_settings.payment_method_types
New APIs for Money CardManagement
- Add support for new resources
V2.FinancialAddressCreditSimulation
,V2.FinancialAddressGeneratedMicrodeposits
,V2.MoneyManagement.Adjustment
,V2.MoneyManagement.FinancialAccount
,V2.MoneyManagement.FinancialAddress
,V2.MoneyManagement.InboundTransfer
,V2.MoneyManagement.OutboundPaymentQuote
,V2.MoneyManagement.OutboundPayment
,V2.MoneyManagement.OutboundSetupIntent
,V2.MoneyManagement.OutboundTransfer
,V2.MoneyManagement.PayoutMethod
,V2.MoneyManagement.PayoutMethodsBankAccountSpec
,V2.MoneyManagement.ReceivedCredit
,V2.MoneyManagement.ReceivedDebit
,V2.MoneyManagement.TransactionEntry
, andV2.MoneyManagement.Transaction
- Add support for
create
method on resourceV2.MoneyManagement.OutboundPaymentQuote
- Add support for
all
andretrieve
methods on resourcesV2.MoneyManagement.Adjustment
,V2.MoneyManagement.FinancialAccount
,V2.MoneyManagement.ReceivedCredit
,V2.MoneyManagement.ReceivedDebit
,V2.MoneyManagement.TransactionEntry
, andV2.MoneyManagement.Transaction
- Add support for
all
,create
, andretrieve
methods on resourcesV2.MoneyManagement.FinancialAddress
andV2.MoneyManagement.InboundTransfer
- Add support for
all
,cancel
,create
, andretrieve
methods on resourcesV2.MoneyManagement.OutboundPayment
andV2.MoneyManagement.OutboundTransfer
- Add support for
all
,archive
,retrieve
, andunarchive
methods on resourceV2.MoneyManagement.PayoutMethod
- Add support for
all
,cancel
,create
,retrieve
, andupdate
methods on resourceV2.MoneyManagement.OutboundSetupIntent
- Add support for
retrieve
method on resourceV2.MoneyManagement.PayoutMethodsBankAccountSpec
- Add support for new values
account_number
,fedwire_routing_number
, androuting_number
on enuminvalid_payment_method.invalid_param
- Add support for new thin event
V2MoneyManagementFinancialAccountCreatedEvent
with related objectV2.MoneyManagement.FinancialAccount
- Add support for new thin events
V2MoneyManagementFinancialAddressActivatedEvent
andV2MoneyManagementFinancialAddressFailedEvent
with related objectV2.MoneyManagement.FinancialAddress
- Add support for new thin events
V2MoneyManagementInboundTransferAvailableEvent
,V2MoneyManagementInboundTransferBankDebitFailedEvent
,V2MoneyManagementInboundTransferBankDebitProcessingEvent
,V2MoneyManagementInboundTransferBankDebitQueuedEvent
,V2MoneyManagementInboundTransferBankDebitReturnedEvent
, andV2MoneyManagementInboundTransferBankDebitSucceededEvent
with related objectV2.MoneyManagement.InboundTransfer
- Add support for new thin events
V2MoneyManagementOutboundPaymentCanceledEvent
,V2MoneyManagementOutboundPaymentCreatedEvent
,V2MoneyManagementOutboundPaymentFailedEvent
,V2MoneyManagementOutboundPaymentPostedEvent
, andV2MoneyManagementOutboundPaymentReturnedEvent
with related objectV2.MoneyManagement.OutboundPayment
- Add support for new thin events
V2MoneyManagementOutboundTransferCanceledEvent
,V2MoneyManagementOutboundTransferCreatedEvent
,V2MoneyManagementOutboundTransferFailedEvent
,V2MoneyManagementOutboundTransferPostedEvent
, andV2MoneyManagementOutboundTransferReturnedEvent
with related objectV2.MoneyManagement.OutboundTransfer
- Add support for new thin events
V2MoneyManagementReceivedCreditAvailableEvent
,V2MoneyManagementReceivedCreditFailedEvent
,V2MoneyManagementReceivedCreditReturnedEvent
, andV2MoneyManagementReceivedCreditSucceededEvent
with related objectV2.MoneyManagement.ReceivedCredit
- Add support for new thin events
V2MoneyManagementReceivedDebitCanceledEvent
,V2MoneyManagementReceivedDebitFailedEvent
,V2MoneyManagementReceivedDebitPendingEvent
,V2MoneyManagementReceivedDebitSucceededEvent
, andV2MoneyManagementReceivedDebitUpdatedEvent
with related objectV2.MoneyManagement.ReceivedDebit
- Add support for new error types
AlreadyCanceledException
,BlockedByStripeException
,ControlledByDashboardException
,FeatureNotEnabledException
,FinancialAccountNotOpenException
,InsufficientFundsException
,InvalidPayoutMethodException
,NotCancelableException
, andRecipientNotNotifiableException
New APIs for Accounts v2 in private preview
See SaaS platform payments with subscription billing using Accounts v2
- Add support for new resources
V2.Core.AccountLink
,V2.Core.Account
,V2.Core.Person
,V2.Core.Vault.GbBankAccount
,V2.Core.Vault.UsBankAccount
- Add support for
all
,close
,create
,retrieve
, andupdate
methods on resourceV2.Core.Account
- Add support for
create
method on resourceV2.Core.AccountLink
- Add support for
acknowledge_confirmation_of_payee
,archive
,create
,initiate_confirmation_of_payee
, andretrieve
methods on resourceV2.Core.Vault.GbBankAccount
- Add support for
archive
,create
,retrieve
, andupdate
methods on resourceV2.Core.Vault.UsBankAccount
- Add support for new thin events
V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
,V2CoreAccountIncludingConfigurationCustomerUpdatedEvent
,V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
,V2CoreAccountIncludingConfigurationMerchantUpdatedEvent
,V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
,V2CoreAccountIncludingConfigurationRecipientUpdatedEvent
,V2CoreAccountIncludingIdentityUpdatedEvent
, andV2CoreAccountIncludingRequirementsUpdatedEvent
- Add support for new thin event
V2CoreAccountLinkCompletedEvent
with related objectV2.Core.AccountLink
- Add support for new thin events
V2CoreAccountPersonCreatedEvent
,V2CoreAccountPersonDeletedEvent
, andV2CoreAccountPersonUpdatedEvent
with related objectV2.Core.Person
Changes
- Change type of
InvoicePayment.is_default
fromnullable(boolean)
toboolean
- Change type of
PaymentAttemptRecord.payment_method_details.custom
and `PaymentRecord.payment_method_...
- Remove support for values