Repository navigation
Working example of using the python sdk - #14
Conversation
83d14d6 to
1117cf6
Compare
1117cf6 to
a7f3b3f
Compare
* Use OutgoingPaymentWithSpentAmounts to pass model verification * Fix hash mismatch because of trailing slash * Add default=None for optional fields * Fix assignment typo on get_outgoing_payments * Make updatedAt optional because some time the API response doesn't return it * Minor oversights because of lack of testing in a real env
* Docs for the example are on README.md * Uses docker-compose to simplify orchestration * It replicates the example from the nodejs sdk repo * Spins off a temporary sidecar service to handle callback
* Everything is locked to current latest * Remove deprecated dependency and serialize field manually
a7f3b3f to
2a9b5f6
Compare
|
Thanks @johngian for exercising the SDK through a peer-to-peer payment example and contributing the fixes uncovered along the way. The example and its setup documentation will help developers understand the complete payment flow. We’re proceeding with integrating this contribution after #12, following the sequence discussed there. We’ll reconcile the overlapping model, dependency, and request-handling changes while preserving the example and applicable fixes. Follow-up work will align the combined SDK with Open Payments v1.5.1 and the sibling SDKs. For this contribution, that includes:
We’ll use this example as an ongoing integration scenario when validating the completed SDK. Thanks for providing both the fixes and a practical way to exercise them. |
Preserve the model and workflow simplification from PR interledger#12 alongside the request fixes, dependency updates, and peer-to-peer example from PR interledger#14. Use the example adaptation published by @johngian at cb5a861. Regenerate the combined Poetry lockfile. Validation: unit test passes; both example modules import; all nine example requests complete with mocked HTTP responses; Ed25519 signatures verify and reject changed target URIs; the documented callback hash vector passes; Poetry lock consistency passes.
This PR fixes some issues identified in the code while running a real world example. On top of that, it replicates the peer to peer example from the nodejs implementation of the SDK. This was done in order to have a once off way to verify that the majority of the functionality can work in a real environment.
This PR ships with some docs under
/examples/peer-to-peer/README.mdon what the example does.