Pay Invoices

Your ZEBEDEE Developer Wallet is a fully-functional spec-compliant Lightning Network Wallet. We've already shown how to receive/request funds, let's now perform some payments through the Wallet interface in the Dashboard.

Let's head on to the Wallet view on the ZEBEDEE Developer Dashboard. Select the Pay Invoice button.

ZEBEDEE Developers | Wallet

ZEBEDEE Developers | Wallet

You should now see a form like the one seen on the image below. This allows you to paste Invoices from any Bitcoin Lightning services, and pay that Invoice instantly.

ZEBEDEE Developers | Pay Invoice Form

ZEBEDEE Developers | Pay Invoice Form

Let's now find a suitable Bitcoin Lightning service to get an Invoice from.

Pollofeed is a great proof-of-concept of how Bitcoin through Lightning can be used to monetize pretty much anything. In the case of Pollofeed, you are paying a 1,000 satoshi Invoice in order to trigger a mechanical-turk that feeds the chickens.

Yes, these are real chickens. No it's not a recording. Yes you can try it yourself.

Pollofeed

Pollofeed

Once you click the FEED button on the Pollofeed page, you'll be prompted to effect a payment of a 1,000 satoshi Invoice. While you can use any Bitcoin Lightning Wallet to pay for it, we want to make use of the ZEBEDEE Developer Wallet. So instead of scanning the QR code with one of our mobile wallets, we're going to copy the Invoice code itself, and use it on the Dashboard Wallet.

Pollofeed | Pay Invoice

Pollofeed | Pay Invoice

Click on the copy button of that form, and then head back to our ZEBEDEE Pay Invoice form and paste the Invoice code in the input field.

ZEBEDEE Developers | Pay Invoice Form

ZEBEDEE Developers | Pay Invoice Form

First thing you'll notice is that the Submit button is not to Pay Invoice, but rather Decode Invoice. The idea is that the Wallet is going to read this Invoice and decode its contents, and then display them in a friendly manner for you to verify the Invoice payment you're attempting to make.

Now that you've clicked to Decode Invoice you should see the details of the decoded Invoice laid out for you. The Wallet is smart enough that if the Invoice has expired, or you do not have enough funds to perform the payment, it will not allow you to attempt the payment.

Once verified and everything looks good, hit the Confirm & Pay button.

ZEBEDEE Developers | Verify Invoice Payment Details

ZEBEDEE Developers | Verify Invoice Payment Details

Invoice payments tend to settle almost instantaneously, but depending on the connectivity of the receiving service (in this case Pollofeed) the payment can take a few seconds longer.

If there's an error, you will be presented with some details as to what the issue is. If it's successful, the Wallet will route you away from the payment form and show you a success message alongside your new Wallet balance.

ZEBEDEE Developers | Payment Successful

ZEBEDEE Developers | Payment Successful

Similarly to any other transaction you perform on your ZEBEDEE Lightning Wallet, you can head on over to the Transactions tab on the Wallet view and see further information about that Invoice payment.

ZEBEDEE Developers | Wallet Transactions

ZEBEDEE Developers | Wallet Transactions

Back on Pollofeed, once the payment for the corresponding Invoice is performed, you should see a success message, and the feeder will release some food for the chickens.

Hooray!

Pollofeed | Successful Payment

Pollofeed | Successful Payment