PaymayaAmount constructor

const PaymayaAmount({
  1. String? currency = 'PHP',
  2. required num value,
  3. PaymayaDetails? details,
})

A Payment set to be calculated but not including PaymayaDetails.

The PaymayaDetails is optional from the API docs. But is relevant if you want to invoice these transactions when you request to PayMaya.

Implementation

const PaymayaAmount({
  this.currency = 'PHP',
  required this.value,
  this.details,
});