- #3653 Support WeChat Pay for creating a
PaymentMethod and confirming a PaymentIntent
- WeChat Pay is still in beta. To enable support in API bindings, pass the
StripeApiBeta.WeChatPayV1 as an argument when instantiating a Stripe instance.
- #3567 Use
lifecycleScope where possible in Stripe.kt
- When calling payment and setup confirmation methods (e.g.
confirmPayment()), using
a ComponentActivity subclass (e.g. AppCompatActivity) will make the call lifecycle-aware.
- #3635 Deprecate
extraParams in ConfirmPaymentIntentParams
- Use
setupFutureUsage instead.
// before
ConfirmPaymentIntentParams.createWithPaymentMethodCreateParams(
params,
clientSecret,
extraParams = mapOf("setup_future_usage" to "off_session")
)
// after
ConfirmPaymentIntentParams.createWithPaymentMethodCreateParams(
params,
clientSecret,
setupFutureUsage = SetupFutureUsage.OffSession
)
- #3640 Add support for beta headers using
StripeApiBeta
- The following example includes the
wechat_pay_beta=v1 flag in API requests:
Stripe(
context,
publishableKey,
betas = setOf(StripeApiBeta.WechatPayV1)
)
- #3644 Use Custom Tabs for 3DS1 payment authentication when available
- When a
ConfirmPaymentIntentParams or ConfirmSetupIntentParams instance is created without a custom return_url value and used to confirm a PaymentIntent or SetupIntent and the device supports Custom Tabs, use Custom Tabs instead of a WebView to render the authentication page.
- See Stripe#confirmPayment() for more details.
- #3646 Upgrade 3DS2 SDK to
5.3.1
- Gracefully handle unknown directory server ids
- #3656 Deprecate
return_url in ConfirmSetupIntentParams
- Setting a custom
return_url prevents authenticating 3DS1 with Custom Tabs.
Instead, a WebView fallback will be used.
See the changelog for more details.