Skip to content

Strike is the new Stripe. Using Strike API Beta key to develop Stripe-like features

Notifications You must be signed in to change notification settings

maxdignan/strike-is-the-new-stripe

Repository files navigation

Strike is the new Stripe

Haven't you heard?

Get basic payment processing features with no long sign up and no fees.

Basic Usage

Make your business

http POST https://your.domain/businesses name='Max Energy' strike_user_handle='maxdignan' --json

You'll get back your business_secret. Keep this secret.

Make your first customer

http POST https://your.domain/customers business_secret='YOUR_BUSINESS_SECRET_HERE' name='Max Energy Buyer' --json
  • You'll get back your customer's secret. This isn't as secret, but keep it between just you and your customer.
  • You'll also get back the customer's id. Keep this around so you can send them an invoice. These simply auto-increment, but invoice creation only works when it's YOUR customer.

Make Your First Invoice for that Customer

http POST https://your.domain/invoices business_secret='YOUR_BUSINESS_SECRET_HERE' description='Pay your first invoice pls' amount=9.10 currency='USD' customer_id=THE_ID_RETURNED_FOR_THAT_CUSTOMER --json
  • You'll get back a uuid. This is the invoiceId from Strike. Keep this handy.

Make a Quote

http POST https://your.domain/invoice-quote business_secret='YOUR_BUSINESS_SECRET_HERE' uuid='UUID_OR_INVOICE_ID_OF_INVOICE_OF_INTEREST' --json
  • You'll get back the lnInvoice and onchain address info, if applicable. You'll also get the expiration info for the quote.

Advanced Features

List invoices

(as a business)

http GET https://your.domain/invoices business_secret='YOUR_BUSINESS_SECRET_HERE'

(as a customer)

http GET https://your.domain/invoices customer_secret='YOUR_CUSTOMER_SECRET_HERE'

Get Invoice Details by UUID

Use the uuid of an invoice to get more info about it. Works the same as above. Send the business or the customer secret.

http GET https://your.domain/invoices/i uuid='dc186f4e-0958-431e-aea0-e3b3cf2b714e' business_secret='c920ed94-014b-406e-a498-d67ca80d5e34'

And some more...

Checkout the source code to find more goodies!

About

Strike is the new Stripe. Using Strike API Beta key to develop Stripe-like features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published