PaymentsAPI constructor

PaymentsAPI({
  1. PaymentStatus? status,
  2. void setPaymentStatusInDevelopment(
    1. PaymentStatus
    )?,
  3. num getUserFirstRanSecondsAgo()?,
  4. Future<void> initiateCheckoutAsync([
    1. dynamic
    ])?,
  5. void requestCheckout()?,
  6. Future<String> getPluginPaymentTokenAsync()?,
})

Implementation

factory PaymentsAPI({
  _i3.PaymentStatus? status,
  void Function(_i3.PaymentStatus)? setPaymentStatusInDevelopment,
  _i2.num Function()? getUserFirstRanSecondsAgo,
  _i2.Future<void> Function([_i2.dynamic])? initiateCheckoutAsync,
  void Function()? requestCheckout,
  _i2.Future<_i2.String> Function()? getPluginPaymentTokenAsync,
}) =>
    PaymentsAPI._(
      status: status ?? _i7.undefined,
      setPaymentStatusInDevelopment: setPaymentStatusInDevelopment == null
          ? null
          : _i5.allowInterop(setPaymentStatusInDevelopment),
      getUserFirstRanSecondsAgo: getUserFirstRanSecondsAgo == null
          ? null
          : _i5.allowInterop(getUserFirstRanSecondsAgo),
      initiateCheckoutAsync: initiateCheckoutAsync == null
          ? null
          : _i5.allowInterop(initiateCheckoutAsync),
      requestCheckout:
          requestCheckout == null ? null : _i5.allowInterop(requestCheckout),
      getPluginPaymentTokenAsync: getPluginPaymentTokenAsync == null
          ? null
          : _i5.allowInterop(getPluginPaymentTokenAsync),
    );