跳到主要内容
ArcBlock Community

Stripe Payments

Adewambe Daniel
支持
payment-kitdocsfeaturequalifiedresolvedrewarded

Good day,

I integrated payment kit to my blocklet app, but whenever i generate a checkout link, i do not get the stripe and ethereum option. even if i already updated the dashboard with my stripe details and ethereum details

This is the code snippet for the checkout url generation

const checkoutSession = await Payment.checkout.sessions.create({ success_url: component.getUrl( /api/payment/checkout/success?sub_id=${subscription._id}&paymentPlan=${paymentPlan}, ), line_items: [ { price_id: price.id, quantity: 1, }, ], metadata: { subscriptionId: subscription._id, }, mode: 'subscription', payment_method_types: ['arcblock', 'stripe', 'ethereum', 'bitcoin'] });

Also i cannot seem to add USD as a currency, anytime i list the available currencies, i only see ABT in the live mode. and i get TBA and some others in the test mode

Do i have to specifically create the currency?

5 条回复

wangshijun22个月前

Hi, Stripe and Ethereum are separate payment methods that need to be added to Payment kit to make it work:

  1. Add them in "Payments" --> "Settings" --> "Add Payment Method", different payment methods need different configurations, just follow the form should be OK
  2. Set a "USD" or "ETH" or "ERC20" price in your "Payments" --> "Products" --> "Product Detail" --> "Add another price"

Then you should get Stripe or Ethereum payment working in check out session.

And you are welcome to create a tutorial along the way for this topic, which will be qualified in our bug bounty program, 😄

Adewambe Daniel22个月前

okay i will try that out

honestly after my experience here, i think I'd curate a series of articles to make the experience more seamless for others to use. It's great technology

Adewambe Daniel22个月前

Ran into an issue z1QVadvFtAiUyoGjRSAkwJzpohaf3J3Capj

can i use a universal price for all?

i just now noticed that i can only set the price in usd for ethereum

how can i use usd as a central currency, since abt flunctuates

wangshijun22个月前

Using ABT as the base price is by design in the current version of Payment Kit, but we will consider your proposal and support setting prices with just USD.

Xiao Fang22个月前

Payment Kit version 1.16.7 already supports only USD or other currencies, you can upgrade your dependencies and services to try out the new version, and then give us feedback if you have any problems using it. z1aEgoZKHCf4CqsH2BLa9vAe4P4GHSSwPQ3

回复