Skip to content

How to add condition on how data are to be sent over the API #597

@pro-cms

Description

@pro-cms

I have two tables, one is a Book table and another is a Book Payment table
in the Book table I just store book info and amount for payment and in the Book Payment table I store ref_id , book_id, user_id, etc

Now I want to send a response depending on whether the user has paid for the book or not if the user paid then it sends 1 in the is_paid part of the response else it displays 0 that I know it is not paid. i am steel a beginner at this package

Anyone who can explain how to implement this

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions