You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stripe send notifications on our webhook route (https://gitpay.me/webhooks) sending information about the balance of an account. This balance is very useful to control the transfer about the bounties being sent.
Stripe send the balances that update the value available to transfer that is really useful to control the transfer that is being made by the platform. So we need to be notified when the balance update
Level
Beginner
Current behavior
The current behavior is a webhook being send to the route /webhooks and isn't recognized and nothing happens, just a pending webhook that should be be send by email to notifications@gitpay.me
Expected behavior
When a webhook of new balances is send, a e-mail should be send to notifications@gitpay.me
The email format should be
Subject: Um novo balanço da sua conta no Gitpay
<p>Temos um novo balanço para a conta do Gitpay:</p>
<ul>
<li>currency: value</li>
</ul>
The test should return sucessful for the new balance object, you should create a fixture with the object received at https://github.com/worknenjoy/gitpay/tree/master/test/data with the name balance.js with the data provided here
How to reproduze the user scenario
Make a request to webhooks with the data described in this issue
The request will return with fail because the webhook isn't recognized
What you will need to complete this issue
You will need the sendgrid keys to be able to receive the e-mails
You will need to sucessful run npm run test
All the keys will be provided once you accept this issue
Tips
It's a great task to practice TDD, so first create the test setup and run. After you have the desired result, make requests (with POSTMAN or curl) and you will receive the emails (First you need to test to send in your own email, after you have the desired result, switch to notifications@gitpay.me)
The text was updated successfully, but these errors were encountered:
Stripe send notifications on our webhook route (https://gitpay.me/webhooks) sending information about the balance of an account. This balance is very useful to control the transfer about the bounties being sent.
The webhook notifications is already setup and integrated with the e-mails, tested and working for a lot of notifications that happens in many actions inside the Gitpay platform, as we have here:
https://github.com/worknenjoy/gitpay/blob/master/modules/load/controllers/webhook.js
We need to support this new webhook that give information about the balance.
This is the request received:
The webhooks is not configured locally, so to test it you should run the tests:
https://github.com/worknenjoy/gitpay/blob/master/test/webhook.test.js
With
npm run test
Why
Stripe send the balances that update the value available to transfer that is really useful to control the transfer that is being made by the platform. So we need to be notified when the balance update
Level
Beginner
Current behavior
The current behavior is a webhook being send to the route
/webhooks
and isn't recognized and nothing happens, just a pending webhook that should be be send by email to notifications@gitpay.meExpected behavior
When a webhook of new balances is send, a e-mail should be send to notifications@gitpay.me
The email format should be
Subject: Um novo balanço da sua conta no Gitpay
How to solve this issue
Create a test in https://github.com/worknenjoy/gitpay/blob/master/test/webhook.test.js
The test should return sucessful for the new balance object, you should create a fixture with the object received at
https://github.com/worknenjoy/gitpay/tree/master/test/data
with the namebalance.js
with the data provided hereHow to reproduze the user scenario
What you will need to complete this issue
npm run test
All the keys will be provided once you accept this issue
Tips
It's a great task to practice TDD, so first create the test setup and run. After you have the desired result, make requests (with POSTMAN or curl) and you will receive the emails (First you need to test to send in your own email, after you have the desired result, switch to notifications@gitpay.me)
The text was updated successfully, but these errors were encountered: