Skip to content

PaymentRequest model fixes #62

Description

@Josiah-J
  1. The integration field of the model should be optional because it is missing in some responses.
  2. The notifications field can also be a str type. This may to be a bug on Paystack side because contrary to their documentation, what they actually return is notification: "[]".

In the meantime I just inherited the model with these modifications and it works:

class AlternativePaymentRequestModel(PaymentRequest):
    integration: int | Integration | None = None
    notifications: list[PaymentRequestNotification] | str

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions