Skip to content

Add Alipay future usage support - #6923

Draft
porter-stripe wants to merge 3 commits into
masterfrom
porter/alipay-future-usage
Draft

Add Alipay future usage support#6923
porter-stripe wants to merge 3 commits into
masterfrom
porter/alipay-future-usage

Conversation

@porter-stripe

Copy link
Copy Markdown
Collaborator

Summary

Adds Alipay support for future-use PaymentIntents and SetupIntents in PaymentSheet. This includes intent-level and payment-method-option-level setup future usage, along with the Alipay mandate shown when saving payment information. The feature is marked as private preview.

Motivation

Alipay future usage private preview

Testing

  • New and updated unit tests
  • Live gated Alipay confirmation matrix for PaymentIntent, PI+SFU, PI+PMO-SFU, and SetupIntent
  • Recorded network fixture replay

Changelog

See diff

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
@github-actions

Copy link
Copy Markdown

⚠️ Missing Translations
The following strings have been uploaded to Lokalise but are not yet translated.

By saving your payment information, you allow %@ to charge you for future payments in accordance with their terms.

If it's okay for these strings to be unlocalized in master (e.g. this is for an unshipped feature), add the label ship without translations to acknowledge that there are missing translations. Otherwise, wait until translations are available in Lokalise and re-run this job.

New strings are localized on a weekly basis and are downloaded as part of the release process. For more details on how to localize a string, you can refer to this link.

2 modified, 0 added
@github-actions

Copy link
Copy Markdown

⚠️ Public API changes detected:

StripePayments

Public API

+  @objc public var currency: Swift.String?
+  @objc public var paymentMethodOptions: StripePayments.STPConfirmPaymentMethodOptions?
+  @objc public var setupFutureUsage: StripePayments.STPPaymentIntentSetupFutureUsage

If you are adding a new public API consider the following:

  • Do these APIs need to be public or can they be protected with @_spi(STP)?
  • If these APIs need to be public, assess whether they require an API review.

If you are modifying or removing a public API:

  • Does this require a breaking version change?
  • Do these changes require API review?

If you confirm these APIs need to be added/updated and have undergone necessary review, add the label modifies public API to this PR to acknowledge the interface change.
Additionally, if you modified or removed an existing API, ensure you update the changelog to reflect the necessary version bump for your changes. Regular public API changes require a MAJOR version bump, and SPI API changes (other than declarations using only @_spi(STP) and/or @_spi(ReactNativeSDK)) require a MINOR or MAJOR version bump.

ℹ️ If this comment appears to be left in error, make sure your branch is up-to-date with master. If it still appears spurious, you can ignore this optional check.


static var alipay_mandate_text: String {
STPLocalizedString(
"By saving your payment information, you allow %@ to charge you for future payments in accordance with their terms.",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant