stripeProxy static method
Calls secureOps Cloud Function to proxy a Stripe API call.
isLive determines whether to use the live or test Stripe key.
Implementation
static Future<Map<String, dynamic>?> stripeProxy({
required String path,
String method = 'POST',
String? body,
bool isLive = true,
}) async {
try {
return await callSecureOps({
'action': 'stripeProxy',
'method': method,
'path': path,
'body': body,
'isLive': isLive,
});
} catch (e, st) {
NeomErrorLogger.recordError(e, st, module: 'neom_core', operation: 'stripeProxy');
return null;
}
}