Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_getReference() #19

Closed
Ikxyz opened this issue Jun 17, 2019 · 2 comments
Closed

_getReference() #19

Ikxyz opened this issue Jun 17, 2019 · 2 comments

Comments

@Ikxyz
Copy link

Ikxyz commented Jun 17, 2019

_getRefrence() is respected severs times in your documentation but what exactly are we supposed to do here

Thanks

@wilburx9
Copy link
Owner

Please, I am having difficulties understanding this issue. Please, do you mind providing more explanation?

@Ikxyz
Copy link
Author

Ikxyz commented Jun 19, 2019

No worry figured out the issue I misunderstood your documentation

in your documentation, you should add something like this instead of the _getRefrence()

   final result = await network.post(
      "https://api.paystack.co/transaction/initialize",
      body: jsonEncode({
        "reference": "${//*  GENERATED STRING **/}",
        "amount": 10000,
        "email": "example@gmail.com"
      }),
      headers: {
        "Authorization":
            "Bearer screct_key*"
      },
    ).catchError((err) {
      throw err;
    });
    final jsonResult = jsonDecode(result.body);

Anyways Am cool

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants