How to reference entries from multiple streams
alireza - 3 months ago
I think it is best to describe with an example.
There is a Payments stream. Now, Books stream sends the user to Payments stream to make a payment and then it wants to query the payments to see if the payment is done or not for that book. Also, Magazines stream needs to do the same. Save a payment referencing that magazine and check if the payment for that magazin is done. There might be other streams in the future.
Now I have the Books and Magazines streams but the question is how to build that Payments stream? How to make it the way that it could say what record at which stream has beed the origin of the payment and also get the payment of a Book or Magazine?
Thanks for your help.