googleapis / googleapis/google-api-nodejs-client

Create direct API purchase request in google store

Aperta
#2,999 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
priority: p3 type: question
Lingua principale
TypeScript
Stelle
12.2k
Fork
2k
Merge medio
1g 9h
PR unite (30g)
24

Descrizione

Hey ! We have some additional logic for purchasing in google store, so we are interesting in testing all flow, but just from API perspective. Everything setup on client, client sends all data to backend. Still we are interesting exactly in backend test, but without client.

Just in case, does this real, to do purchase using from backend side, without client ?

In case this is real, our request contains from several fields, main of them:

- receipt
- rawData
- signature

**Receipt field** on client we are taking from getOriginalJson method:
https://developer.android.com/reference/com/android/billingclient/api/Purchase#getOriginalJson()
**rawData field** the most interesting thing their "_purchaseToken_"
**signature field** on client we are taking from getSignature method:
https://developer.android.com/reference/com/android/billingclient/api/Purchase#getSignature()

For example about signature field, probably the most interesting one, according do doc:

> Returns String containing the signature of the purchase data that was signed with the private key of the developer. The data signature uses the RSASSA-PKCS1-v1_5 scheme

Sounds that we can do that by ourself, still in RSASSA-PKCS1-v1_5 can work on client with specific options, like length, hash etc. In case it is possible, can someone give more info what options we need to use ?

Main question, does nodejs client, may be another library, provides some useful methods out of the box to help us (receipt, and especially signature) ? (I looked there but did no find, may be missed) ?

I will be very grateful for any tips, suggestion, thanks in advance !

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Esamina la documentazione di Google Play Billing Purchase collegata nell’issue e le capacità del client Node.js. Determina se sono supportati i test di Purchase esclusivamente nel backend e la generazione di ricevute/firme; l’issue è completata quando il flusso supportato e le opzioni crittografiche necessarie sono documentati oppure la limitazione è confermata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, nodejs, typescript
Ambito
api, backend, payments
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.