Open
Description
When I try initialize a payment, I get this error
Error message:
FormatException: Unexpected character (at character 1)
Source:
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
To recreate the error, us this config for initialization
final Flutterwave flutterwave = Flutterwave(
context: context,
style: style,
publicKey: getPublicKey(),
currency: currency,
redirectUrl: "https://google.com",
txRef: const Uuid().v1(),
amount: amountController.text,
customer: customer,
// subAccounts: subAccounts,
//paymentOptions: "card, payattitude, barter",
paymentOptions: "card",
customization: Customization(title: "Test Payment"),
isTestMode: isTestMode);
final ChargeResponse response = await flutterwave.charge();