platformDecrypt static method

Map<String, dynamic> platformDecrypt(
  1. String payload,
  2. String encryptionKey
)

Platform-facing API: decrypt a payload and return a Map with keys transaction and merchant. This is a simple entry point the Source platform can call directly without needing to reimplement decryption.

Example: final result = Source.platformDecrypt(payload, encryptionKey);

Implementation

static Map<String, dynamic> platformDecrypt(
  String payload,
  String encryptionKey,
) {
  return instance.decodePayloadWithMerchant(payload, encryptionKey);
}