PaymayaSinglePayment constructor

const PaymayaSinglePayment({
  1. required PaymayaRedirectUrls redirectUrl,
  2. required SinglePaymentAmount totalAmount,
  3. required String requestReferenceNumber,
  4. Map<String, dynamic> metadata = const {},
})

Not identical with PaymayaAmount.

This was intended for SinglePayment method which uses the value as String instead of num

Implementation

const PaymayaSinglePayment({
  required this.redirectUrl,
  required this.totalAmount,
  required this.requestReferenceNumber,
  this.metadata = const {},
});