Stripe Payments
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 条回复
Hi, Stripe and Ethereum are separate payment methods that need to be added to Payment kit to make it work:
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, 😄
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
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
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.
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