Function PaymentIntentsApiFactory

  • PaymentIntentsApi - factory interface

    Export

    Parameters

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

    Returns {
        cancelPaymentIntent(requestParameters, options?) => AxiosPromise<PaymentIntent>;
        capturePaymentIntent(requestParameters, options?) => AxiosPromise<PaymentIntent>;
        confirmPaymentIntent(requestParameters, options?) => AxiosPromise<PaymentIntent>;
        createPaymentIntent(requestParameters, options?) => AxiosPromise<PaymentIntent>;
        getPaymentIntent(requestParameters, options?) => AxiosPromise<PaymentIntent>;
        listPaymentIntents(requestParameters, options?) => AxiosPromise<ListPaymentIntents200Response>;
        updatePaymentIntent(requestParameters, options?) => AxiosPromise<PaymentIntent>;
    }

    • cancelPaymentIntent:function
      • Cancels an existing Payment Intent. A Payment Intent can be canceled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, or requires_action. Once canceled, no additional charges will be made by the Payment Intent, and any operations on the Payment Intent will fail with an error.

        Summary

        Cancel a Payment Intent

        Throws

        Parameters

        Returns AxiosPromise<PaymentIntent>

    • capturePaymentIntent:function
      • Captures a Payment Intent. Payment Intents can only be captured if their status is requires_capture. Uncaptured Payment Intents will be canceled exactly 7 days after creation.

        Summary

        Capture a Payment Intent

        Throws

        Parameters

        Returns AxiosPromise<PaymentIntent>

    • confirmPaymentIntent:function
    • createPaymentIntent:function
    • getPaymentIntent:function
    • listPaymentIntents:function
    • updatePaymentIntent:function

Generated using TypeDoc