toTotalPay method
Implementation
String toTotalPay() {
return """
{application_id: '${getApplicationId()}',
pg: '$pg',
order_name: '${orderName?.queryReplace()}',
price: $price,
tax_free: $taxFree,
order_id: '${orderId.queryReplace()}',
subscription_id: '$subscriptionId',
authentication_id: '$authenticationId',
wallet_id: '$walletId',
token: '$token',
authenticate_type: '$authenticateType',
user_token: '$userToken',
easy_type: '$easyType',
metadata: ${getMetadataStringAndroid()},
extra: ${json.encode(extra?.toJson()).replaceAll("\"", "'")},
user: ${user.toString()},
items: ${getItems()}
}
""";
}