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

Can we have a webhook called on verification? #221

Open
AAverin opened this issue Jun 30, 2023 · 3 comments
Open

Can we have a webhook called on verification? #221

AAverin opened this issue Jun 30, 2023 · 3 comments

Comments

@AAverin
Copy link

AAverin commented Jun 30, 2023

I would like to run this project as standalone verification service and call into my main API to grant user access for subscriptions.

Is there webhook support that could be invoked every time transactions are processed?

@richzw
Copy link
Collaborator

richzw commented Jul 1, 2023

IMO, for iOS, maybe the app store notification could meet your requirement, and then parse the notification string in this repo could be used. @AAverin

@AAverin
Copy link
Author

AAverin commented Jul 1, 2023

@richzw my main service is written in php, so I can't use this project as a library dependency. I would either need to compile it to some kind of CLI or run it as a separate instance. I would prefer separate instance that could notify my main php service when payment was validated so that I could grant user access in the database.

@richzw
Copy link
Collaborator

richzw commented Jul 1, 2023

@AAverin , I think you could wrap this repo as one separate instance, and this instance could communicate with your PHP server through RPC. When your client connects to your main server, then your main server could communicate with this wrapped instance through RPC like verifyReceipt to verify the receipt from the client.

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

No branches or pull requests

3 participants