Hi Andrei,
Invoices would be my recommended solution. You can create an invoice
item for the amount that you want, then immediately create an invoice
and request payment of that invoice, which will generate a charge
unless the amount is below the minimum. It is a few different API
calls to make, but it captures the semantics that you're looking for.
This has the added benefit of making the flow work even for a customer
that has no credit card attached. Even without a credit attached,
attempting to "pay" a $0 invoice on a customer will still succeed.
It isn't possible to capture these relaxed constraints using Charges
themselves, because a Charge always represents an actual (attempt to)
shell out to the card networks.
Cheers,
JIm
> --
> You received this message because you are subscribed to the Google Groups
> "Stripe API Discussion" group.
> To post to this group, send email to
api-d...@lists.stripe.com.
> Visit this group at
>
http://groups.google.com/a/lists.stripe.com/group/api-discuss/.
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
api-discuss...@lists.stripe.com.