PaymentProvider class

A payment provider represents a payment service installed in the Medusa backend, either through a plugin or backend customizations. It holds the payment service's installation status.

Annotations
  • @JsonSerializable()

Constructors

PaymentProvider({required String id, required bool isInstalled})
PaymentProvider.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the payment provider as given by the payment service.
getter/setter pair
isInstalled bool
Whether the payment service is installed in the current version. If a payment service is no longer installed, the is_installed attribute is set to false.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited