pull down to refresh

So basically what I want is this: My site shows an invoice in a mobile browser, user clics to pay it, wallet opens, users pays, wallet sends the user back to browser.
I can already do all of that (using bolt-11 invoices and "lightning:invoice") except the last step, so as I understand, SuccessAction is what I need to use.
Am I lost?
Ok I think I understand more. It sounds like you are already generating lnurls that deeplink to lightning wallets from the browser. In that case, yes, all you need to do is send the 'successAction' object in the response given from the callback url. To display a url, the successAction object needs to look like:
{ "tag": "url", "description": "Thank you for your purchase. Here is your order details", // Up to 144 characters "url": "https://www.ln-service.com/order/<orderId>" // url domain must be the same as `callback` domain at step 3 }
^ sample json taken from LUD-09 spec
reply
Oh, thanks. hmm, maybe we are getting there but still lost. I don't think I am generating lnurls, my deeplinks look like this: "lightning: lnbc..."
So I guess I need to learn 2 steps:
  1. How to create LNurls (instead of bolt11)
  2. Encode the LNurl with params into a deeplink
is that right?
reply
reply