(amount-available charge)
Returns the amount that the charge is actually worth, or the amount available for further refunds.
Returns the amount that the charge is actually worth, or the amount available for further refunds.
(amount-refunded charge)
Returns the total amount that was refunded for the charge.
Returns the total amount that was refunded for the charge.
(capture! charge-id params)
(capture! charge-id params opts)
Returns an updated charge with captured property set to true. If charge is already refunded, expired, captured, or an invalid capture amount is specified, returns an error.
Returns an updated charge with captured property set to true. If charge is already refunded, expired, captured, or an invalid capture amount is specified, returns an error.
Is the argument a valid capture request?
Is the argument a valid capture request?
Is the argument a valid charge amount?
Is the argument a valid charge amount?
Is the argument a valid charge request?
Is the argument a valid charge request?
(create! amount params)
(create! amount {:keys [currency] :or {currency "usd"} :as params} opts)
Create a charge.
Create a charge.
(fetch charge-id)
(fetch charge-id opts)
Returns a channel containing the charge if it exists, or an error if it doesn't.
Returns a channel containing the charge if it exists, or an error if it doesn't.
(fetch-all params)
(fetch-all params opts)
Returns a channel containing all charges if they exist up to a certain limit, if specified. If charges do not exist, return will be an empty vector.
Returns a channel containing all charges if they exist up to a certain limit, if specified. If charges do not exist, return will be an empty vector.
Is the argument a valid fetch all request?
Is the argument a valid fetch all request?
(update! charge-id params)
(update! charge-id params opts)
Returns an updated charge with values for any of the following arguments: customer, description, fraud details, metadata, receipt email, shipping. If any parameters are invalid, returns an error.
Returns an updated charge with values for any of the following arguments: customer, description, fraud details, metadata, receipt email, shipping. If any parameters are invalid, returns an error.
Is the argument a valid update request?
Is the argument a valid update request?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close