Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To document urlScheme and it's iOS/Android setup #1901

Open
artemsorochan opened this issue Aug 26, 2024 · 0 comments
Open

To document urlScheme and it's iOS/Android setup #1901

artemsorochan opened this issue Aug 26, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@artemsorochan
Copy link

artemsorochan commented Aug 26, 2024

Proposal to have a dedicated doc for the urlScheme settings. It's not really documented anywhere(even didn't find it in Stripe iOS/Android SDK docs).

But e.g. PayPal setup intent on iOS doesn't work without it (throws exception: "You must provide a return_url when confirming a SetupIntent with the payment method type paypal").

So the proposal is to mention these pieces of code, and explain what is "safepay"(seems like a const from Stripe), and what is "flutterstripe" (can be anything?)

  1. flutter - main.dart:
    Stripe.urlScheme = 'flutterstripe';

  2. iOS - Info.plist:

<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLName</key>
			<string>safepay</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>flutterstripe</string>
			</array>
		</dict>
  1. Android - AndroidManifest.xml:
          <category android:name="android.intent.category.DEFAULT" />
          <category android:name="android.intent.category.BROWSABLE" />
          <data android:scheme="flutterstripe" android:host="safepay" />
        </intent-filter>
@artemsorochan artemsorochan added the needs triage Needs triage label Aug 26, 2024
@remonh87 remonh87 added documentation Improvements or additions to documentation and removed needs triage Needs triage labels Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants