跳到主要内容
ArcBlock Community

DID Passports connected to Products in the Payment Kit

Wasil
支持
payment-kitqaqualifiedresolvedrewardedsolution

Yo! I noticed in the Payment Kit, there is an area where you can “assign a passport” to a product, or even a payment link.

I tried doing this with a member passport, but nothing came of it once I tried going through the process of purchasing it.

My goal was to try and create a similar experience to DID: Spaces, or other ArcBlock services, in that when someone subscribes to the app, they will receive an NFT to then be used as a key to access the app.

What I want to do is attach the Payment Kit component to my Pages Kit blocklet, and then make a product with a members passport assigned to it, so that when the customer purchases a subscription, they receive the passport assigned to their DID: Wallet, Email, or Web2 Login Service like Google, to then gain access to my Pages Kit website, where the service is waiting for them use.

Basically Netflix, but with DID passports.

(Side Question: Can DID passports be issued to normal Web2 accounts, or must it only be a Web3 Wallet?)

My reasoning for this is to create a micro-service. I tried before to set up a subscription model for access to my videos, but I ultimately had to manually issue all new member passports every time a customer subscribed.

It was fine at the time, but I wasn’t able to effectively scale the service, especially while sleeping lol.

The passports would also need to become void or “redeemed” once a customer cancels their subscription, that way they can’t cancel and continue using the service. However, if this is a bit difficult to do, I’m more than willing to manually cancel the passports myself and keep an eye on what subscriptions are active.

It’s mainly keeping up with the issuance part that I have the most trouble with.

2 条回复

wangshijun2年前

z1TTxpjeYVMyNVwRbBjrhxa4E94UaDd6ZX9 Very glad to see that you want to compose multiple blocklets to get your user workflow smooth, the "passport" in payment kit is designed like the following:

  • You have to assign both a product and payment link to the passport to make things work, and the payment link should only contain prices from that product
  • Once the above setup is correct, every new purchase from the payment link will trigger an automatic passport issuance, whether it's one-time payments or it's recurring subscriptions
  • If the payment link contains a recurring subscription, the issued passport will be automatically revoked once the subscription is canceled, either by the user or the admin.

image.png

Please let me know if something is not working as expected.

Wasil2年前(edited)

Let’s go!!!🔥 So it already is set up as I was thinking, perfect! This is exactly what I needed, thank you for detailing it out for me🙏⭐️

And yea, if there’s anything else or an issue, I’ll be sure to let you know!

回复