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.
28 lines (27 loc) • 1.43 kB
TypeScript
import { IPaymentProvider } from "../../base/contracts/IPaymentProvider";
import { BasePaymentProvider } from "../../base/entity/BasePaymentProvider";
import { IApplePayPaymentProvider } from "../../base/contracts/GatewayProviders/IApplePayPaymentProvider";
/**
* Class {ApplePayPayment} extends {BasePaymentProvider} and implements {IPaymentProvider} and {IApplePayPaymentProvider}.
* It provides the concrete implementation of the Apple Pay payment provider.
*
* @class ApplePayPayment
* @extends BasePaymentProvider
* @implements {IPaymentProvider}
* @implements {IApplePayPaymentProvider}
*
* @remark
* This class is responsible for initializing the Apple Pay SDK and providing the concrete implementation of the Apple Pay payment provider methods.
*/
export declare class ApplePayPayment extends BasePaymentProvider implements IPaymentProvider, IApplePayPaymentProvider {
/**
* Validates the payment session using the Apple Pay SDK.
*
* @param data The Apple Pay session validation data.
* @returns The result of the payment session validation. If the validation is successful, the result is the validated session object. Otherwise, the result is an error object with the error message.
*/
validatePaymentSession(data: any): Promise<any>;
initPaymentIntent(data: any): Promise<void>;
requestPayment(data: any): Promise<void>;
getOrderDetails(data: any): Promise<void>;
}