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

    Type Alias CardFieldsSavePaymentSession

    CardFieldsSavePaymentSession: BaseCardFieldsSession & {
        submit: (
            ...args: SavePaymentSubmitOptions,
        ) => Promise<SavePaymentFlowResponse>;
    }

    Type Declaration

    • submit: (...args: SavePaymentSubmitOptions) => Promise<SavePaymentFlowResponse>

      Use this method to submit and save a payment method using Card Fields.

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