@ng-web-apis/payment-request
Version:
This is a library for declarative use of Payment Request API with Angular
29 lines (28 loc) • 911 B
TypeScript
import { InjectionToken } from '@angular/core';
export interface WaPaymentOptions {
requestBillingAddress?: boolean;
requestPayerEmail?: boolean;
requestPayerName?: boolean;
requestPayerPhone?: boolean;
requestShipping?: boolean;
shippingType?: 'delivery' | 'pickup' | 'shipping';
}
/**
* @deprecated: drop in v5.0, use {@link WaPaymentOptions}
*/
export type PaymentOptions = WaPaymentOptions;
export interface WaPaymentShippingOption {
amount: PaymentCurrencyAmount;
id: string;
label: string;
selected?: boolean;
}
/**
* @deprecated: drop in v5.0, use {@link WaPaymentShippingOption}
*/
export type PaymentShippingOption = WaPaymentShippingOption;
export declare const WA_PAYMENT_OPTIONS: InjectionToken<WaPaymentOptions>;
/**
* @deprecated: drop in v5.0, use {@link WA_PAYMENT_OPTIONS}
*/
export declare const PAYMENT_OPTIONS: InjectionToken<WaPaymentOptions>;