MobiPayHash class

Utility class for generating Mobibox hash signatures

According to Mobibox documentation: Hash = SHA1(MD5(UPPERCASE(order.number + order.amount + order.currency + order.description + password)))

Constructors

MobiPayHash()

Properties

hashCode → int
The hash code for this object.
no setterinherited
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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

generateAuthHash({required String orderNumber, required String orderAmount, required String orderCurrency, required String orderDescription, required String password}) → String
Generate authentication hash for checkout/session token requests
generateDigitalWalletSaleHash({required String email, required String password}) → String
Generate signature hash for S2S CARD SALE requests that include a digital_wallet (Apple Pay / Google Pay) payment token.
generateSaleHash({required String identifier, required String orderId, required String orderAmount, required String orderCurrency, required String password}) → String
Generate signature hash for S2S APM SALE requests (e.g. Apple Pay, Google Pay and other alternative payment method "brand" requests sent directly with action=SALE).
generateTransactionStatusHash({required String paymentId, required String password}) → String
Generate hash for GET_TRANS_STATUS by payment_id