Skip to content

Cannot initialize payment #48

Open
@iogbonna

Description

@iogbonna

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions