UNPKG

bc-payments-sdk

Version:

BetterCommerce's Payments NodeJS SDK is a complete solution for storefront clients that integrate payments. `bc-payments-sdk` is a single point interface for storefront clients for interacting with payment gateways.

25 lines (24 loc) 2.06 kB
import { BCEnvironment } from "./base/config/BCEnvironment"; import { PaymentSourceType as CheckoutPaymentSourceType, PaymentType as CheckoutPaymentType, PaymentRequest as CheckoutPaymentRequest } from "bc-checkout-sdk"; import { IPaymentIntent as KlarnaPaymentIntent } from "bc-klarna-sdk/dist/models/IPaymentIntent"; import { PaymentIntent as KlarnaPaymentIntentType } from "bc-klarna-sdk/dist/constants/enums/PaymentIntent"; import { IOrderLine as KlarnaOrderLine } from "bc-klarna-sdk/dist/models/IOrderLine"; import { OrderLine as ClearPayOrderLine, Address as ClearPayAddress, PaymentIntent as ClearPayPaymentIntent } from "bc-clearpay-sdk"; import { APIConnectionException, APIException, AuthenticationException, BCException, InvalidRequestException } from "./base/entity"; import { IPaymentInfo } from "./models/better-commerce/IPaymentInfo"; import { PaymentStatus, PayPal, Checkout, Stripe, Klarna, Juspay } from "./constants/enums/PaymentStatus"; import { PaymentMethodType, PaymentMethodTypeId, PaymentSelectionType } from "./constants"; import { getGatewayId, getGatewayName } from "./utils/payment-util"; import { JuspayPaymentType } from "./constants/enums"; export { PaymentMethodType, PaymentMethodTypeId, JuspayPaymentType, PaymentSelectionType, }; export { PayPal as PayPalConstants, Checkout as CheckoutConstants, Stripe as StripeConstants, Klarna as KlarnaConstants, Juspay as JuspayConstants, PaymentStatus, }; import { PaymentOperation } from "./operations/PaymentOperation"; import { BetterCommerceOperation } from "./operations/BetterCommerceOperation"; export { BCEnvironment, APIConnectionException, APIException, AuthenticationException, BCException, InvalidRequestException }; export { IPaymentInfo }; export { CheckoutPaymentSourceType, CheckoutPaymentType, CheckoutPaymentRequest }; export { KlarnaPaymentIntentType, KlarnaOrderLine, KlarnaPaymentIntent }; export { ClearPayAddress, ClearPayOrderLine, ClearPayPaymentIntent }; export { PaymentOperation }; export { BetterCommerceOperation }; export { getGatewayId, getGatewayName };