PaymentsAPI constructor
PaymentsAPI({
- PaymentStatus? status,
- void setPaymentStatusInDevelopment()?,
- num getUserFirstRanSecondsAgo()?,
- Future<
void> initiateCheckoutAsync([- dynamic
- void requestCheckout()?,
- 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),
);