processPayment static method
Processes a payment with the specified payment ID.
Returns a KhipuResult object representing the result of the payment process. If the payment process is successful, the KhipuResult object will contain the necessary information about the payment. If the payment process fails, the KhipuResult object will be null.
The paymentId
parameter is the ID of the payment to be processed.
Throws an exception if there is an error during the payment process.
Implementation
static Future<KhipuResult?> processPayment({required String paymentId}) async {
return await KhipuPayPlatform.instance.processPayment(paymentId);
}