stripeProxy static method

Future<Map<String, dynamic>?> stripeProxy({
  1. required String path,
  2. String method = 'POST',
  3. String? body,
  4. bool isLive = true,
})

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;
  }
}