Releases: stripe/stripe-dotnet
Orders and Sources
- Create, get, update, pay, and list
StripeOrder
's with the newStripeOrderService
. StripeSourceCard
is now returned as theCard
property onStripeSource
when creating a source with a card token.- Added a
Token
option toBankAccountOptions
- The Bancontact source is now supported.
- Webhook processing was modified to protect against timing attacks
Transfer Reversals, Secure Events
- Added the Transfer Reversals service
- Added secure events - see the readme
- Added the transfer group to StripeTransferCreateOptions
- Added ExpandSource to the StripeBalanceService
SMALL BREAKING CHANGE
- StripeBalanceTransaction Source was previously a string with the source id. It is now a
StripeSource
(expandable type). To upgrade your existing code, just changeSource
toSourceId
.
TotalCounts, ThreeDSecure
- Listing balance transactions now supports including the total count.
- Added the ThreeDSecure Source.
- Fixed StripeError so the StripeResponse property is populated.
SMALL BREAKING CHANGES
The List() method on the StripeBalanceService
now returns a StripeList
. To refactor your existing code, just add .Data
to the result of the call. This will give you the list you had before.
The total count when listing charges was previously defaulted to true. It now must be explicitly set in the options. e.g. options.IncludeTotalCount = true
.
StripeAccount Property Renames
- The StripeAccount
transfer_*
properties were renamedpayout_*
Product Support
- Support for Stripe Products - Create/Get/Update/Delete
- Added the
sofort
andsepa_debit
resources - Added a few properties missing from the shipping entity
- Added the other entities for all of Relay (Order, OrderItem, Sku, etc)
Payouts/Transfers Split
I would recommend reading the Transfer Payout Split release from Stripe, as that describes the majority of the changes in 8.0.
- The Transfer service has been refactored to match the
2017-04-06
api release, and the new Payouts service was added. - The new Payout events were added to
StripeEvents
, and the transfer events no longer relevant have been removed. - Added the business tax/vat provided bool's to StripeAccount.LegalEntity.
- Documentation added/updated for both Transfers and Payouts. The Payouts example code is an elegant way to write your Stripe.net code, imo 👍
StripeList returned when listing charges, Ideal
BREAKING CHANGES
The List() method on StripeChargeService
now returns a StripeList. To refactor your existing code, just add .Data
to the result of the call. This will give you the list you had before.
- Added the Ideal source
Infrastructure note: Renamed stripe_net_test_key to STRIPE_TEST_KEY as the environment variable to execute the tests.
Bug Fixes and Tools Updates
- The parameter writer was fixed to correctly convert periods into commas for decimals (FR culture)
- Removed a trailing space from the boundary on a multipart file post causing Xamarin Forms to fail for Android #802
- Converted the Stripe.net source and test projects to VS2017 (csproj format)
Subscription Source
Delete
is now supported for the newStripeExternalAccountService
AvailablePayoutMethods
was added as an array onStripeCard
- When creating a subscription source, card is now obsolete. Use
Source
for a token, orSourceCard
Recipients was removed from the readme, and will start being removed entirely from Stripe.net.
Multiple Item Subscriptions, maintenance
This release has a couple of small breaking changes:
-
SubscriptionItems
was renamed toItems
on StripeSubscription -
Quantity on StripeSubscription was changed from an int to an int? (this can be null now if you are using Subscription Items instead of directly on the Subscription)
-
Subscriptions create/update now supports multiple plans. There is a new SubscriptionService method for Create, that does not accept a plan id. This test is an example of how to create and update multiple items on a subscription
-
Internal dependencies updated
-
RedirectReturlUrl fixed in
StripeSourceCreateOptions