setup static method

Future<HyperpayPlugin> setup({
  1. required HyperpayConfig config,
})

Setup HyperPay instance with the required stuff to make a successful payment transaction.

See HyperpayConfig, PaymentMode

Implementation

static Future<HyperpayPlugin> setup({required HyperpayConfig config}) async {
  await _channel.invokeMethod(
    'setup_service',
    {
      'mode': config.paymentMode.string,
    },
  );

  return HyperpayPlugin._(config);
}