UNPKG

@lomray/microservice-payment-stripe

Version:

Stripe payment microservice based on NodeJS & inverted json.

26 lines (25 loc) 941 B
import TransactionRole from "../../constants/transaction-role.js"; declare class PaymentIntentFeesInput { entityCost: number; feesPayer?: TransactionRole; applicationPaymentPercent?: number; additionalFeesPercent?: Record<TransactionRole, number>; extraReceiverRevenuePercent?: number; shouldEstimateTax?: boolean; withStripeFee?: boolean; } declare class PaymentIntentFeesOutput { stripeFee: number; platformFee: number; userAmount: number; receiverRevenue: number; estimatedTaxPercent?: number; estimatedTax?: number; taxFee?: number; } /** * Returns calculated fees for payment intent * @description Call from frontend for buy entity fees calculation */ declare const paymentIntentFees: import("@lomray/microservice-helpers/services/endpoint").IReturnWithMeta<never, PaymentIntentFeesInput, Record<string, any>, PaymentIntentFeesOutput>; export { paymentIntentFees as default };