#Matix

1 messages ยท Page 1 of 1 (latest)

vapid anchorBOT
thick dove
#

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"?

west phoenix
#
  1. 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
  2. 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
thick dove
#
  1. 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?
#
  1. 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
west phoenix
#

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

thick dove
west phoenix
#

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)

thick dove
#

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

west phoenix
#

ok, it is this case ๐Ÿ˜„

thick dove
west phoenix
#

OK, thank you!