{"repo":"stripe/mpp-rb","free":true,"listed":false,"github":"https://github.com/stripe/mpp-rb","clone":"git clone https://github.com/stripe/mpp-rb.git","description":"Ruby SDK for the Machine Payments Protocol","language":"Ruby","stars":15,"topics":["machine-payments","machine-payments-protocol","mpp","payments","tempo"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"mpp-rb Ruby SDK for the Machine Payments Protocol Documentation Full documentation, API reference, and guides are available at mpp.dev/sdk/ruby . Install Or add to your Gemfile: Quick Start Server Client Event hooks Register hooks to observe the automatic payment lifecycle. Each registration returns an unsubscribe proc. Client events are challenge.received , credential.created , payment.response , and payment.failed . Server events are challenge.created , payment.success , and payment.failed . Rack Middleware Examples Example Description --------- ------------- tempo charge Tempo testnet payments via Sinatra stripe charge Stripe payments via Shared Payment Tokens Each example is a standalone Sinatra app with /free and /paid endpoints. To run one: Then test with mppx, a CLI that handles the full 402 challenge/credential flow: Support Matrix Method Charge Client Charge Server -------- --------------- --------------- Tempo Yes Yes Stripe Yes Yes Tempo charge transaction construction is implemented directly in Ruby. Optional dependencies: eth (account signing) and rlp (fee payer envelope). Protocol Built on the \"Payment\" HTTP Authentication Scheme. See mpp-specs for the full specification. Releasing 1. Create a release PR: - Update the version in lib/mpp/version.rb - Run bundle lock --update mpp-rb in the root and each examples/ subdirectory - Commit and open a PR to verify CI passes 2. Merge the PR 3. Tag the merge commit: git tag v0.x.x 4. Push the tag: git push origin --tags L","default_branch":null,"files":null,"tree":[],"storefront":"/r/stripe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stripe/mpp-rb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}