update method

Future<MolliePaymentResponse> update(
  1. String paymentId,
  2. Map map
)

This endpoint can be used to update some details of a created payment. You can update weebhookUrl, redirectUrl, description and metadata

Implementation

Future<MolliePaymentResponse> update(String paymentId, Map map) async {
  var res = await http.patch(Uri.parse("$_apiEndpoint/$paymentId"), headers: _headers, body: json.encode(map));

  dynamic data = json.decode(res.body);

  return MolliePaymentResponse.build(data);
}