· Experimenting with low-code tools

Custom Stripe integration clashing with FF built-in integration?

Custom Code
Resolved

Hi. For a very specific reason I've had to build a custom Stripe integration for my web application. And that is working. I'm not using anything from FF. The FE is custom code and the BE is Supabase. I'm managing the keys myself as Env variables.

BUT, initially I tried the built-in FF Stripe integration, so I had 'Stripe payments' enabled and the Firebase funcitons deployed all along. But now if I switch off the 'Stripe payments' from FF the custom code doesn't compile anymore. I thought the dependencies were all in the packages imported?

I'm importing this:

// Automatic FlutterFlow imports
import '/backend/backend.dart';
import '/backend/schema/structs/index.dart';
import '/backend/supabase/supabase.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/actions/index.dart'; // Imports other custom actions
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom action code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!

import 'dart:convert';
import 'package:flutter_stripe/flutter_stripe.dart';
import 'package:flutter_stripe_web/flutter_stripe_web.dart';
import 'package:http/http.dart' as http;

and getting compilation errors like this:

Target of URI doesn't exist: 'package:flutter_stripe/flutter_stripe.dart'. Try creating the file referenced by the URI, or try using a URI for a file that does exist.

What have you tried so far?

enabling and disabling Stripe FF integration

Did you check FlutterFlow's Documentation for this topic?
No
1
1 reply