跳到主要内容
ArcBlock Community

Payment Kit: Create Payment using NodeJS

Adewambe Daniel
支持
payment-kitdocs

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 条回复

Adewambe Daniel1年前

umm, am i ever going to get a response? I just need a yes/no to know if it's possible or not

wangshijun1年前

Hi, sorry for the late reply, documentation for @blocklet/payment-js is not ready yet, but the design of Payment Kit is similar to Stripe's.

Just created an example blocklet that uses both @blocklet/payment-js and @blocklet/payment-react, please let us know if this helps or not:

https://github.com/blocklet/payment-example

Adewambe Daniel1年前

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?

Adewambe Daniel1年前

ummm....

wangshijun1年前

Can you post more detail about the "not reachable" issue? what's the URL? what's the error?

Adewambe Daniel23个月前

Good day, I'm still stuck at this issue

  1. The payment kit only works on the initial initialization of the blocklet server where it is exposed to port 8092
  2. Once it disconnects from the server daemon, the component does not install, therefore anytime i try to use the payment kit, it says component not accessible
  3. when it is accessible, the checkout url i get refuses to load on the browser

z1k7Ks2F6eWNeRWZxwnByDasrHCyLaQQfBG

wangshijun23个月前

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?

Adewambe Daniel23个月前

I'm using codespaces

回复