Payment Kit: Create Payment using NodeJS
I'm creating a product using blocklet, and i want to use payment kit for the subscription. I found the npm package @blocklet/payment.js but it doesn't provide any documentation.
I want to do this on the backend because i need to be able to attach the payment to a user as a subscription. Or does the react payment kit package provide a special key that i can use to verify payments? Can i get any urgent help on this?
9 replies
umm, am i ever going to get a response? I just need a yes/no to know if it's possible or not
Hi, sorry for the late reply, documentation for
@blocklet/payment-jsis not ready yet, but the design of Payment Kit is similar to Stripe's.Just created an example blocklet that uses both
@blocklet/payment-jsand@blocklet/payment-react, please let us know if this helps or not:https://github.com/blocklet/payment-example
Using the steps provided in the codebase above, i was able to generate the checkout url, the only issue is the fact that the checkout url is not reachable
Can i only access it once i deploy?
ummm....
Can you post more detail about the "not reachable" issue? what's the URL? what's the error?
http://bbqautlxexhh66pih2b2xlbsetedltkjknpx64er4d4.did.abtnet.io/z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk/checkout/pay/cs_3TOscYcnhosw2og697W3WWDtI8M4PIpQEcC9o1aOulQ4LwNS8eb3iDH9WR
Good day, I'm still stuck at this issue
z1k7Ks2F6eWNeRWZxwnByDasrHCyLaQQfBG
Hi, can you provide more context on where you are running your blocklet server and blocklet?
On your local machine? using github code spaces?
If using your local machine? what's the output of
blocklet server info?I'm using codespaces