Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Payment with flex token example gives INVALID_DATA error

Aperta
#66 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
api, payments

Direzione di ricerca

Start by running Samples/Payments/Payments/payment-with-flex-token.js and payment-with-flex-token-create-permanent-tms-token.js as described in the issue, then inspect how each example builds the Flex token payment request. Trace the tokenInformation.jti handling and verify the examples no longer return INVALID_DATA for that field.

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

Descrizione

When I run the flex token payment example i.e.

node Samples/Payments/Payments/payment-with-flex-token.js

I get the following error in the response:

\"Declined - One or more fields in the request contains invalid data\",\"details\":[{\"field\":\"tokenInformation.jti\",\"reason\":\"INVALID_DATA\"

As these examples are supposed to be self-contained I expected this to work. Does anyone know what the issue is? I did try adding the jti value which you can obtain from the decoded JWT token but this didn't fix the issue.

Also note that the exact same problem applies to the payment-with-flex-token-create-permanent-tms-token.js example.

Lingua principale
JavaScript
Stelle
43
Fork
66
Merge medio
1g 8h
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CyberSource/cybersource-rest-samples-node

Tutte le issue di CyberSource/cybersource-rest-samples-node

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.