-
Notifications
You must be signed in to change notification settings - Fork 23
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
[SDP-1397] Circle payouts pt1 #486
Conversation
stellar-disbursement-platform-backend-preview is available here: |
stellar-disbursement-platform-backend-preview is available here: |
stellar-disbursement-platform-backend-preview is available here: |
a46248e
to
5652b7e
Compare
stellar-disbursement-platform-backend-preview is available here: |
stellar-disbursement-platform-backend-preview is available here: |
stellar-disbursement-platform-backend-preview is available here: |
stellar-disbursement-platform-backend-preview is available here: |
Something went wrong with PR preview build please check |
9f12f0d
to
eb34fe4
Compare
…rt reconciliation with both transfer or payouts, whichever is available.
…able to reconcile both transfers and/or payouts.
Something went wrong with PR preview build please check |
a15b635
to
0480232
Compare
stellar-disbursement-platform-backend-preview is available here: |
### What Errors in the POST /recipient endpoint are not being properly handled. What;s missing? - When POST /recipient fails with `ErrCircleRecipientCreationFailedTooManyTimes`, we update the payments table with the failed status explaining the reason. - When a payment that failed due to recipient creation issues is retried, the recipient is reset with `status=NULL` and `sync_attempts=0`. - The method `ensureRecipientIsReady` was split into different sub-methods for better modularity and clarity, as suggested in #486 (comment). <img width="1151" alt="Screenshot 2024-12-12 at 4 39 08 PM" src="https://github.com/user-attachments/assets/53ed59d9-bba0-42e2-b149-0fca3bfb5a66" /> - [x] Tested with scheduled jobs - [x] Tested with Kafka ### Why To wrap up https://stellarorg.atlassian.net/browse/SDP-1397
What
Replace the usage of Circle's
POST /transfers
API endpoint with the combination ofPOST /recipients
andPOST /payouts
API endpoint.Why
Circle plans to stop support for the /transfers API endpoint.
Pending
Errors in the POST /recipient endpoint are not being properly handled. What;s missing?
ErrCircleRecipientCreationFailedTooManyTimes
, it should update the payments table with the failed statusensureRecipientIsReady
as suggested in [SDP-1397] Circle payouts pt1 #486 (comment).Checklist
PR Structure
Thoroughness
Configs and Secrets
values.yaml
file.pr-preview
,dev
,demo
,prd
).values.yaml
file.pr-preview secrets
,dev secrets
,demo secrets
,prd secrets
).Release
develop
ormain
after it's ready for production!Deployment