#Matix
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Not sure I completely follow your asks. Can you maybe share an example so that I'm on the same page?
What exactly do you mean by "automatic invoicing" for one-time payments? as well as "continuous sending of webhook events"?
- what I mean is that invoices should be sent to the user automatically in case of one-time payment, as it is the case with subscriptions
- If the webhook fails (when the server returns an error 422, for example), the webhook is sent again in a few hours. And so on and so forth until there is no response 200
- what I mean is that invoices should be sent to the user automatically in case of one-time payment, as it is the case with subscriptions
Ah gotcha. How exactly are you integrating one-time payments? Are you using Stripe Checkout or Something else?
- If the webhook fails (when the server returns an error 422, for example), the webhook is sent again in a few hours. And so on and so forth until there is no response 200
I don't think there's a way to stop the retries unfortunately (unless you disable the webhook endpoint entirely)
https://stripe.com/docs/webhooks/best-practices#retry-logic
Stripe checkout:
line_items=[{"price": plan.price_id, "quantity": 1}],
mode=mode,
success_url="https://gallio.pro/payment-success/?session_id="
"{CHECKOUT_SESSION_ID}&product_type=" + product_type,
cancel_url="https://gallio.pro/payment-failed/?product_type=" + product_type,
automatic_tax={"enabled": True},
allow_promotion_codes=True,
tax_id_collection={
"enabled": True,
},
)```
and invoicing works perfectly in subscription mode, but not in one-payment mode
You'd want to set invoice_creation.enabled to true for one-time payments
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-invoice_creation
wow, cool!
Another issue: promotional codes don't work on one-time payment (I've got an error "This code is incorrect." but it works for subscription products)
And how to give customers an option to entering the company's billing address (when I click the "buy as a company" option, only entering the company's name and VAT number appears)
huh interesting, promotional codes should work with one-time payments. One thing I'd flag is
Checkout does not currently support discounting a purchase below the minimum charge amount for one-time payments.
So if you have a 100% off coupon/promo then that might not work
ok, it is this case ๐
We have docs on how to work with Tax IDs and addresses. I'd recommend going through these
https://stripe.com/docs/tax/checkout/tax-ids
OK, thank you!