Skip to content

Repository files navigation

The following endpoints can be used to create a transaction and check the status:

buf curl
--schema ./createpayment/v1/createpayment.proto
--protocol grpc
--http2-prior-knowledge
--data '{"idempotency_key": "631et2d2gdueg62u", "amount": 3, "destination": "abc1234"}'
http://0.0.0.0:8080/createpayment.v1.CreatePaymentService/CreatePayment

buf curl
--schema ./status/v1/status.proto
--data '{"idempotency_key": "631et2d2gdueg62u"}'
http://0.0.0.0:8080/status.v1.StatusService/Status

The following endpoints can be used to create a transaction and check the status.

Note that we configured an idempotency key when set to 123 the transaction tends to fail:

buf curl
--schema ./createpayment/v1/createpayment.proto
--protocol grpc
--http2-prior-knowledge
--data '{"idempotency_key": "123", "amount": 3, "destination": "abc1234"}'
http://0.0.0.0:8080/createpayment.v1.CreatePaymentService/CreatePayment

buf curl
--schema ./status/v1/status.proto
--data '{"idempotency_key": "123"}'
http://0.0.0.0:8080/status.v1.StatusService/Status

About

Connect App for payouts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages