order not logged in - create keypair
This commit is contained in:
parent
d192fd6dfc
commit
e9f37f4a6b
2 changed files with 23 additions and 4 deletions
|
|
@ -163,6 +163,13 @@ async function customerStall(path) {
|
|||
this.customerUseExtension = true
|
||||
this.checkoutDialog.data.pubkey = this.customerPubkey
|
||||
},
|
||||
async generateKeyPair() {
|
||||
this.customerPrivkey = NostrTools.generatePrivateKey()
|
||||
this.customerPubkey = NostrTools.getPublicKey(this.customerPrivkey)
|
||||
this.customerUseExtension = false
|
||||
this.checkoutDialog.data.pubkey = this.customerPubkey
|
||||
this.checkoutDialog.data.privkey = this.customerPrivkey
|
||||
},
|
||||
openCheckout() {
|
||||
// Check if user is logged in
|
||||
if (this.customerPubkey) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue