UNPKG

@portone/browser-sdk

Version:

PortOne SDK for browser

58 lines (57 loc) 1.77 kB
import { PaypalV2Country } from '../PaypalV2Country.js'; export type PaypalV2LoadPaymentUIBypass = { style?: { color?: 'gold' | 'blue' | 'silver' | 'white' | 'black'; height?: number; label?: 'paypal' | 'checkout' | 'buynow' | 'pay' | 'installment' | 'subscribe' | 'donate'; layout?: 'vertical' | 'horizontal'; shape?: 'rect' | 'pill'; period?: string; tagline?: boolean; }; ['enable-funding']?: string; ['disable-funding']?: string; purchase_units?: { payee?: { merchant_id: string; }; shipping?: { address?: { address_line_1: string; address_line_2?: string; admin_area_1?: string; admin_area_2: string; postal_code?: string; country_code: PaypalV2Country; }; }; }[]; payer?: { tax_info?: { tax_id: string; tax_id_type: string; }; address?: { address_line_1?: string; address_line_2?: string; admin_area_1?: string; admin_area_2?: string; postal_code?: string; country_code: PaypalV2Country; }; }; payment_source?: { paypal?: { experience_context?: { brand_name?: string; shipping_preference?: 'GET_FROM_FILE' | 'NO_SHIPPING' | 'SET_PROVIDED_ADDRESS'; landing_page?: 'LOGIN' | 'GUEST_CHECKOUT' | 'NO_PREFERENCE'; payment_method_preference?: 'UNRESTRICTED' | 'IMMEDIATE_PAYMENT_REQUIRED'; }; }; }; additional_data?: { key: string; value: string; }[]; };