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

Gerar sessão e token do cartão no Localhost? #154

Open
jorgehernandezch opened this issue Apr 9, 2021 · 2 comments
Open

Gerar sessão e token do cartão no Localhost? #154

jorgehernandezch opened this issue Apr 9, 2021 · 2 comments

Comments

@jorgehernandezch
Copy link

No método send é obrigatorio enviar 'creditCardToken' , mas para gerar esse token, é necessario criar uma 'sessionId'.
Eu consigo criar no Postman o 'sessionId' e depois com esse dado consigo criar o 'creditCardToken', mas quando tento gerar com ajax no localhost sempre dá erro.

É possivel criar 'sessionId' e 'creditCardToken' no localhost?

@andrewl94
Copy link

Qual o erro? É possível sim.

@allandiego
Copy link

faz um post para https://df.uol.com.br/v2/cards

   -data sessionId=
  --data amount=
  --data cardNumber=4111111111111111 
  --data cardBrand=visa 
  --data cardCvv=123 
  --data cardExpirationMonth=12 
  --data cardExpirationYear=2030

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

No branches or pull requests

3 participants