We are trying to integrate a new receipt verification service called Flexion. It is a portal for various stores (amazon/samsung/...), it generates receipts in the same way as Google's receipt format except that it adds an extra field in the payload to indicate that it is signed by Flexion. And it uses public key to validate the receipt the same way as Google.
I have tried different ways to use this library to work around supporting both Google service validation and Flexion at the same time. But failed to do so.
I looked into the code, since useGoogleApi is a global variable, I can't re-configure the lib every time when making a purchase since multiple receipt validations can be going at the same time.
What would be the best way to support our usage case?
We are trying to integrate a new receipt verification service called Flexion. It is a portal for various stores (amazon/samsung/...), it generates receipts in the same way as Google's receipt format except that it adds an extra field in the payload to indicate that it is signed by Flexion. And it uses public key to validate the receipt the same way as Google.
I have tried different ways to use this library to work around supporting both Google service validation and Flexion at the same time. But failed to do so.
I looked into the code, since useGoogleApi is a global variable, I can't re-configure the lib every time when making a purchase since multiple receipt validations can be going at the same time.
What would be the best way to support our usage case?