-
Notifications
You must be signed in to change notification settings - Fork 850
Migration guide for v9
Kamil Pajdzik edited this page Jul 31, 2022
·
1 revision
"
- Add
alternate_statement_descriptors
,authorization_code
, andlevel3
properties toCharge
resource. - Add
previewLines
method toCreditNote
resource. - Add
transfer_data
property toSubscription
resource. - Add
SOURCE_TYPE_FPX
constant toTransfer
resource. - Add new error code constants to
ErrorObject
:CODE_ACCOUNT_ERROR_COUNTRY_CHANGE_REQUIRES_ADDITIONAL_STEPS
,CODE_ACCOUNT_INFORMATION_MISMATCH
,CODE_ACSS_DEBIT_SESSION_INCOMPLETE
,CODE_AUTHENTICATION_REQUIRED
,CODE_BANK_ACCOUNT_BAD_ROUTING_NUMBERS
,CODE_BANK_ACCOUNT_DECLINED
,CODE_BANK_ACCOUNT_VERIFICATION_FAILED
,CODE_BILLING_INVALID_MANDATE
,CODE_CARD_DECLINE_RATE_LIMIT_EXCEEDED
,CODE_CARDHOLDER_PHONE_NUMBER_REQUIRED
,CODE_CHARGE_INVALID_PARAMETER
,CODE_CLEARING_CODE_UNSUPPORTED
,CODE_COUNTRY_CODE_INVALID
,CODE_CUSTOMER_MAX_PAYMENT_METHODS
,CODE_DEBIT_NOT_AUTHORIZED
,CODE_INSTANT_PAYOUTS_LIMIT_EXCEEDED
,CODE_INSUFFICIENT_FUNDS
,CODE_INTENT_INVALID_STATE
,CODE_INTENT_VERIFICATION_METHOD_MISSING
,CODE_INVALID_CHARACTERS
,CODE_INVOICE_NO_PAYMENT_METHOD_TYPES
,CODE_INVOICE_ON_BEHALF_OF_NOT_EDITABLE
,CODE_NO_ACCOUNT
,CODE_PAYMENT_INTENT_ACTION_REQUIRED
,CODE_PAYMENT_INTENT_KONBINI_REJECTED_CONFIRMATION_NUMBER
,CODE_PAYMENT_INTENT_MANDATE_INVALID
,CODE_PAYMENT_INTENT_PAYMENT_ATTEMPT_EXPIRED
,CODE_PAYMENT_METHOD_BANK_ACCOUNT_ALREADY_VERIFIED
,CODE_PAYMENT_METHOD_BANK_ACCOUNT_BLOCKED
,CODE_PAYMENT_METHOD_BILLING_DETAILS_ADDRESS_MISSING
,CODE_PAYMENT_METHOD_CURRENCY_MISMATCH
,CODE_PAYMENT_METHOD_INVALID_PARAMETER
,CODE_PAYMENT_METHOD_INVALID_PARAMETER_TESTMODE
,CODE_PAYMENT_METHOD_MICRODEPOSIT_FAILED
,CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_AMOUNTS_INVALID
,CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_AMOUNTS_MISMATCH
,CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_ATTEMPTS_EXCEEDED
,CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_DESCRIPTOR_CODE_MISMATCH
,CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_TIMEOUT
,CODE_PAYMENT_METHOD_PROVIDER_DECLINE
,CODE_PAYMENT_METHOD_PROVIDER_TIMEOUT
,CODE_PAYMENT_METHOD_UNSUPPORTED_TYPE
,CODE_PLATFORM_ACCOUNT_REQUIRED
,CODE_REFER_TO_CUSTOMER
,CODE_REFUND_DISPUTED_PAYMENT
,CODE_RETURN_INTENT_ALREADY_PROCESSED
,CODE_SETUP_INTENT_INVALID_PARAMETER
,CODE_SETUP_INTENT_SETUP_ATTEMPT_EXPIRED
,CODE_TERMINAL_LOCATION_COUNTRY_UNSUPPORTED
, andTRANSFER_SOURCE_BALANCE_PARAMETERS_MISMATCH
- Change type of
source
property onCharge
resource to no longer accept an instance ofAlipayAccount
orBitcoinReceiver
. - Change type of
default_source
property onCustomer
resource to no longer accept an instance ofAlipayAccount
orBitcoinReceiver
. - Change return type of
allSources
,createSource
,deleteSource
,retrieveSource
, andupdateSource
methods onCustomer
resource andCustomerService
service. They no longer return an instance ofAlipayAccount
orBitcoinReceiver
. - Change type of
default_source
property onInvoice
resource to no longer accept an instance ofAlipayAccount
orBitcoinReceiver
. - Change type of
source
property onPaymentIntent
resource to no longer accept an instance ofAlipayAccount
orBitcoinReceiver
. - Change type of
default_source
property onSubscription
resource to no longer accept an instance ofAlipayAccount
orBitcoinReceiver
. - Updated certificate bundle (#1314)
- Add
params
parameter toclose
method inDispute
resource.- No changes are necessary if the method was invoked like below:
$dispute->close();
- Following adjustment has to be made if
opts
parameter was used:
// If "params" parameter is not used, change $dispute->close([/* opts */]); // to $dispute->close(null, [/* opts */]);
- Fix return type of
allLineItems
method inSessionService
.
- Remove deprecated
AlipayAccount
,BitcoinReceiver
,BitcoinTransaction
,Recipient
,RecipientTransfer
, andThreeDSecure
resources. - Remove
CAPABILITY_CARD_PAYMENTS
,CAPABILITY_LEGACY_PAYMENTS
,CAPABILITY_PLATFORM_PAYMENTS
,CAPABILITY_TRANSFERS
,CAPABILITY_STATUS_ACTIVE
,CAPABILITY_STATUS_INACTIVE
, andCAPABILITY_STATUS_PENDING
constants fromAccount
resource. Please use up-to-date values from https://stripe.com/docs/connect/account-capabilities. - Remove
AssociatedObjects
array property fromEphemeralKey
resource. The field was undocumented and unsupported. - Remove
details
method fromCard
resource. The endpoint was deprecated and no longer exists. - Remove
recipient
property fromCard
resource. The property was deprecated. - Remove ability to list
Card
resources for a particularRecipient
. - Remove
sources
property fromCard
resource. The property was deprecated. - Remove
FAILURE_REASON
constant fromRefund
resource. The value was deprecated. - Remove
Recipient
resource. The resource was deprecated. - Remove
OrderItem
resource. The resource was deprecated. - Remove
all
method fromLineItem
. - Remove
cancel
method fromTransfer
andTransferService
. This method is deprecated. - Remove
allTransactions
method fromSourceService
service. Please useallSourceTransactions
method instead.// change $stripe->sources->allTransactions("src_12345"); // to $stripe->sources->allSourceTransactions("src_12345");
- Remove
persons
method fromAccount
resource. Please useallPersons
method instead.// change Account::persons("acct_1234") // to Account::allPersons("acct_1234")
- Remove
sourceTransactions
method fromSource
resource. Please useallSourceTransactions
method instead.// change Source::sourceTransactions("src_12345"); // to Source::allSourceTransactions("src_12345");
- Remove
usageRecordSummaries
method fromSubscriptionItem
resource. Please useallUsageRecordSummaries
method instead.// change SubscriptionItem::usageRecordSummaries("sub_12345"); // to SubscriptionItem::allUsageRecordSummaries("sub_12345");
- Remove
SOURCE_TYPE_ALIPAY_ACCOUNT
andSOURCE_TYPE_FINANCING
constants fromTransfer
resource. The values were deprecated and are no longer in use. - Remove deprecated error code constants from
ErrorObject
:CODE_ACCOUNT_ALREADY_EXISTS
,CODE_ORDER_CREATION_FAILED
,CODE_ORDER_REQUIRED_SETTINGS
,CODE_ORDER_STATUS_INVALID
,CODE_ORDER_UPSTREAM_TIMEOUT
, andCODE_UPSTREAM_ORDER_CREATION_FAILED
. - Remove deprecated event constants from
Webhook
:ISSUER_FRAUD_RECORD_CREATED
,ORDER_PAYMENT_FAILED
,ORDER_PAYMENT_SUCCEEDED
,ORDER_UPDATED
,ORDER_RETURN_CREATED
,PAYMENT_METHOD_CARD_AUTOMATICALLY_UPDATED
,PING
,PROMOTION_CODE_DELETED
, andTREASURY_RECEIVED_CREDIT_REVERSED
. The events are deprecated and no longer sent by Stripe.