79390346

Date: 2025-01-27 10:08:55
Score: 0.5
Natty:
Report link

You can follow this guide in order to fetch the stripe fees per transaction:

// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
const stripe = require('stripe')('sk_test_....');

const paymentIntent = await stripe.paymentIntents.retrieve(
  'pi_...',
  {
    expand: ['latest_charge.balance_transaction'],
  }
);

const feeDetails = paymentIntent.latest_charge.balance_transaction.fee_details;

Reasons:
  • Blacklisted phrase (1): this guide
  • Has code block (-0.5):
Posted by: os4m37