Skip to content

Commit

Permalink
doc: add klarna as return url for paymentsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
Remon committed Dec 18, 2023
1 parent f06e51a commit 2b4b3f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class _PaymentSheetScreenState extends State<PaymentSheetScreen> {
// Customer params
customerId: data['customer'],
customerEphemeralKeySecret: data['ephemeralKey'],
returnURL: 'flutterstripe://redirect',

// Extra params
primaryButtonLabel: 'Pay now',
Expand Down
3 changes: 2 additions & 1 deletion example/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ app.post('/payment-sheet', async (_, res) => {
// Edit the following to support different payment methods in your PaymentSheet
// Note: some payment methods have different requirements: https://stripe.com/docs/payments/payment-methods/integration-options
payment_method_types: [
'card',
// 'ideal',
// 'sepa_debit',
// 'sofort',
Expand All @@ -562,7 +563,7 @@ app.post('/payment-sheet', async (_, res) => {
// 'giropay',
// 'eps',
// 'afterpay_clearpay',
'klarna',
// 'klarna',

Check warning on line 566 in example/server/src/index.ts

View workflow job for this annotation

GitHub Actions / Typo CI

klarna

"klarna" is a typo. Did you mean "carnal"?
// 'us_bank_account',
],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class SetupPaymentSheetParameters with _$SetupPaymentSheetParameters {
/// paymentIntent since the customer can change those.
@JsonKey(name: 'defaultBillingDetails') BillingDetails? billingDetails,

/// Return URL is required for IDEAL and few other payment methods
/// Return URL is required for IDEAL, Klarna and few other payment methods

Check warning on line 84 in packages/stripe_platform_interface/lib/src/models/payment_sheet.dart

View workflow job for this annotation

GitHub Actions / Typo CI

Klarna

"Klarna" is a typo. Did you mean "Carnal"?
String? returnURL,

/// Configuration for how billing details are collected during checkout.
Expand Down

0 comments on commit 2b4b3f8

Please sign in to comment.