UNPKG

bc-clearpay-sdk

Version:

BetterCommerce's ClearPay NodeJS SDK enables BC client applications to integrate with ClearPay merchant API system. It publishes an interface to interact with [ClearPay API v2](https://developers.clearpay.co.uk/clearpay-online/reference) endpoints.

48 lines (47 loc) 1.27 kB
import { IAddress } from "./IAddress"; import { IConsumer } from "./IConsumer"; import { IOrderLine } from "./IOrderLine"; export interface IPaymentIntent { readonly purchaseCountry: string; readonly amount: { amount: number; currency: string; }; readonly consumer: IConsumer; readonly billing: IAddress; readonly shipping: IAddress; readonly courier?: { shippedAt: string; name: string; tracking: string; priority: string; }; readonly description: string; readonly items: Array<IOrderLine>; readonly discounts: Array<{ displayName: string; amount: { amount: number; currency: string; }; }>; readonly merchant: { redirectConfirmUrl: string; redirectCancelUrl: string; popupOriginUrl: string; name?: string; }; readonly merchantReference?: string; readonly taxAmount: { amount: number; currency: string; }; readonly shippingAmount: { amount: number; currency: string; }; readonly shippingOptions?: { shippingCountry: string; supportedShippingCountries: string; }; }