lndk-org / lndk

MIT License
83 stars 21 forks source link

Feature: More granular pay offer endpoints #124

Closed orbitalturtle closed 2 months ago

orbitalturtle commented 3 months ago

Feature Description

In addition to pay-offer, which completes the full offer flow when sending a BOLT12 payment, we should have two other endpoints that offer a little more granular control when paying an offer.

This will require refactoring the pay_offer method on the offer handler. I'm imagining creating two methods of offer handler (get_invoice and pay_invoice) that mirror the above endpoints. Then we'd call these two methods in pay_offer, instead of clumping everything together in pay_offer.

mauricepoirrier commented 3 months ago

I can take this one! Is a bit bigger than the others, so i'll do a draft to collect early feedback

mrfelton commented 3 months ago

I can help you with testing and feedback on this one @mauricepoirrier

mauricepoirrier commented 3 months ago

@mrfelton cool ty! I'll ping you 🙌🏼

orbitalturtle commented 2 months ago

Closed by #131.