getPlatformPaymentMethod method
Gets the platform-specific payment method based on the provided method
.
On iOS, certain payment methods are mapped to specific strings for use in platform-specific functionality.
Implementation
String getPlatformPaymentMethod(String method) {
if (Platform.isIOS) {
switch (method) {
case "CREDIT_CARD":
return "PayUsingCC";
case "FAWRY_PAY":
return "PayAtFawry";
case "WALLET":
return "MWALLET";
default:
return "all";
}
} else {
return method;
}
}