@paypal/paypal-js
    Preparing search index...

    Type Alias CardFieldsOneTimePaymentSession

    CardFieldsOneTimePaymentSession: BaseCardFieldsSession & {
        submit: (
            ...args: OneTimePaymentSubmitOptions,
        ) => Promise<OneTimePaymentFlowResponse>;
    }

    Type Declaration

    • submit: (...args: OneTimePaymentSubmitOptions) => Promise<OneTimePaymentFlowResponse>

      Use this method to submit a one-time payment using Card Fields.

      const response = await cardFieldsInstance.submit("your-order-id", {
      billingAddress: {
      postalCode: "12345",
      },
      });