generatePaymentLink static method
dynamic
generatePaymentLink({})
Implementation
static generatePaymentLink({
required String apiKey,
required num amount,
required String orderId,
String? successUrl = lsu,
String? failureUrl = lfu,
}) {
var paymentLink = paymentUrl;
paymentLink += "api_key=$apiKey";
paymentLink += "&amount=$amount";
paymentLink += "&success_url=$successUrl";
paymentLink += "&failure_url=$failureUrl";
paymentLink += "&code=$orderId";
paymentLink += "&type=Internal";
return paymentLink;
}