Multiple credentials #369
Answered
by
imdhemy
robertnicjoo
asked this question in
Q&A
-
|
I have multiple app that using same back-end. Is there a way to set different credential path for different requests? $response = Product::googlePlay()
->packageName('com.example.abc')
// is there an option available here to change credential path value???
->id($productId)
->token($token)
->get(); |
Beta Was this translation helpful? Give feedback.
Answered by
imdhemy
Dec 30, 2024
Replies: 2 comments 2 replies
-
|
Over a year and no response! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Here's how it works with multiple apps. The JSON key file needs to be decoded into an array. // create a client with the key decoded into an array
$client = ClientFactory::createWithJsonKey(jsonKey: $jsonKey, scopes: $scopes);
// pass the $client to the facade
Subscription::googlePlay($client)->id($itemId)->token($purchaseToken)->get();I hope this helps! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, the default scopes are enough for In-App purchase APIs.
https://github.com/imdhemy/google-play-billing/blob/8fe22538c7a117a46e9a959c3819de13dcbae536/tests/ClientFactoryTest.php#L40-L42