https://github.com/arthurdenner/juno-poc
Testing the Juno API 2.0 to understand how single payments and recurrent payments work using their Sandbox environment.
https://github.com/arthurdenner/juno-poc
Last synced: 3 months ago
JSON representation
Testing the Juno API 2.0 to understand how single payments and recurrent payments work using their Sandbox environment.
- Host: GitHub
- URL: https://github.com/arthurdenner/juno-poc
- Owner: arthurdenner
- Created: 2021-08-08T11:03:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-28T09:29:17.000Z (almost 4 years ago)
- Last Synced: 2025-01-23T19:53:08.701Z (4 months ago)
- Language: JavaScript
- Homepage: https://juno-poc-arthurdenner.herokuapp.com/
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Juno POC
Testing the [Juno API 2.0](https://dev.juno.com.br/api/v2) to understand how single payments and recurrent payments work using their Sandbox environment.
## How to run it
- Copy the `.env.example` and rename it to `.env`
- Replace the environment variables with your credentials
- Docs related to [JUNO_CREDENTIALS](https://dev.juno.com.br/api/v2#operation/getAccessToken)
- Docs related to [JUNO_PRIVATE_KEY](https://dev.juno.com.br/api/v2#section/Servidor-de-Recursos)
- Install dependencies with `yarn`
- Run the project with `yarn start`
- Play around with the actions
- Verify the results on the [dashboard](https://sandbox.juno.com.br/#/chargeList)## Features
- Perform a single payment
- Returns billing, charge and payment information
- Trigger a recurrent payment
- Returns billing and charge information
- A payment will be performed each 5 seconds
- dueDate incremented by 1 month each time
- First payment automatic, others delayed
- PS: Success or failure is only logged to console
- Cancel a recurrent payment
- Only possible if a recurrent payment is on going## Perguntar a Juno
- Podemos criar inúmeros planos ou há um limite?