Function PaymentMethodsApiFactory

  • PaymentMethodsApi - factory interface

    Export

    Parameters

    • Optional configuration: Configuration
    • Optional basePath: string
    • Optional axios: AxiosInstance

    Returns {
        attachPaymentMethodToCustomer(requestParameters, options?) => AxiosPromise<PaymentMethod>;
        createAchDebitSingleUseToken(requestParameters, options?) => AxiosPromise<AchDebitSingleUseToken>;
        createPaymentMethod(requestParameters, options?) => AxiosPromise<PaymentMethod>;
        detachPaymentMethodFromCustomer(requestParameters, options?) => AxiosPromise<PaymentMethod>;
        getPaymentMethod(requestParameters, options?) => AxiosPromise<PaymentMethod>;
        listPaymentMethods(requestParameters, options?) => AxiosPromise<ListPaymentMethods200Response>;
        updatePaymentMethod(requestParameters, options?) => AxiosPromise<PaymentMethod>;
    }

    • attachPaymentMethodToCustomer:function
      • Attaches a Payment Method to a Customer, converting it from single-use to reusable. Before attaching a card_present Payment Method to a Customer, the Payment Method must have been successfully used on a Terminal Reader. Payment Methods expire 15 minutes after creation. After 15 minutes, the Payment Method can no longer be attached to a Customer.

        Summary

        Attach a Payment Method to a Customer

        Throws

        Parameters

        Returns AxiosPromise<PaymentMethod>

    • createAchDebitSingleUseToken:function
    • createPaymentMethod:function
    • detachPaymentMethodFromCustomer:function
    • getPaymentMethod:function
    • listPaymentMethods:function
    • updatePaymentMethod:function
      • Updates a Payment Method by setting the values of the provided parameters. Any parameters not provided will be left unchanged. The Payment Method must be attached to a Customer to be updated.

        Summary

        Update a Payment Method

        Throws

        Parameters

        Returns AxiosPromise<PaymentMethod>

Generated using TypeDoc