import { i as PaymentMethod } from "../types-Cjcc3xak.mjs"; import "../connect-card-CZhzK_Tp.mjs"; import "../connect-tunnel-x-BKtMfoGh.mjs"; import { a as GooglePayEncryptedToken } from "../airwallex-google-pay-adapter-D-AxVLLq.mjs"; import { n as GooglePayMockScenario } from "../stripe-google-pay-adapter-B330fRiH.mjs"; //#region src/payment-methods/google-pay.d.ts type GooglePayCustomerInfo = { first_name: string; last_name: string; email?: string; }; type GooglePayStartRequest = { processor_id: string; customer_info: GooglePayCustomerInfo; fraud_metadata: { ipAddress?: string; browserInfo?: { [key: string]: unknown; }; processorFraudInfo?: { [key: string]: unknown; }; }; mock_scenario?: string; }; type GooglePayStartResponse = { checkout_attempt_id: string; amount: number; amount_display: string; currency: string; country: string; processor: "stripe" | "airwallex"; is_sandbox?: boolean; client_secret?: string; stripe_pk?: string; merchant_name?: string; airwallex_account_id?: string; google_merchant_id?: string; }; type GooglePayConfirmRequest = { google_pay_token?: GooglePayEncryptedToken; payer_email?: string; mock_scenario?: string; }; type Airwallex3dsNextAction = { type: "airwallex_3ds"; url: string; method: string; payment_intent_id: string; }; type GooglePayConfirmResponse = { charge_status: "success" | "fail" | "pending"; transaction_id?: string; error_code?: string; error_message?: string; error_message_for_customer?: string; error_message_for_debug?: string; checkout_attempt_id: string; checkout_session_id?: string; next_action?: Airwallex3dsNextAction; payment_intent_id?: string; customer_id?: string; payment_method_id?: string; processor_used?: string; subscription_id?: string; invoice_id?: string; invoice_number?: number; card_brand?: string; card_last4?: string; card_exp_month?: number; card_exp_year?: number; }; type GooglePaySubmitOptions = { /** Processor external ID — optional when using auto-prepare (SDK fetches from checkout session) */ processorId?: string; customerInfo: GooglePayCustomerInfo; mockScenario?: GooglePayMockScenario; }; declare const GooglePayPaymentMethod: PaymentMethod<{ /** * Register a callback to be notified when Google Pay becomes ready (or stops being ready). * Fires immediately with the current state, then on every state change. * Multiple registrations are all notified — none are silently overwritten. * * @example * paymentKit.google_pay.onGooglePayReady((isReady) => { * googlePayButton.disabled = !isReady; * }); */ onGooglePayReady: (callback: (isReady: boolean) => void) => void; /** * Notify the SDK that the payment amount has changed (e.g. coupon applied). * The SDK will disable Google Pay, re-prepare with the new amount, then re-enable. * The returned promise resolves when re-prepare is fully complete. * * @example * await paymentKit.google_pay.notifyAmountChanged(); */ notifyAmountChanged: () => Promise; }, "google_pay">; //#endregion export { Airwallex3dsNextAction, GooglePayConfirmRequest, GooglePayConfirmResponse, GooglePayCustomerInfo, GooglePayMockScenario, GooglePayStartRequest, GooglePayStartResponse, GooglePaySubmitOptions, GooglePayPaymentMethod as default }; //# sourceMappingURL=google-pay.d.mts.map