#Arschterix - promo codes

1 messages · Page 1 of 1 (latest)

drifting lynx
#

Good question. What checkout page are you using in the first case? Is this your own custom checkout page, Stripe's hosted Checkout page, or the hosted page for an Invoice that was created automatically?

late harbor
#

Case#1 uses the Stripe checkout page. The checkout is initiated by an API call on PHP

#

I just see that the images have been added in the wrong order.
Just to make clear: Case #1 is where the testcoupon has been added to the sums

#

Case #2 is where the testcoupon is listed as a line item

drifting lynx
#

Unfortunately I don't think our hosted Checkout Pages can do that. You might want to create an Invoice and apply the discounts individually for those as well if the Checkout Page UI is not viable for you

late harbor
#

If I have a custom checkout page, how could I add the functionality when I create the subscription?
Is there any way to set the promotion codes individually? Or is it actually only possible when creating the invoice?

drifting lynx
#

There may have been a small miscommunication here. Are you creating a Subscription and then linking your users to the Invoice's url?

signal axle
#

Taking over for @drifting lynx as the channel is really busy. @late harbor do you have more details?

late harbor
#

I'm using the stripe checkout page to create subscriptions for the users

#

as Pompey pointed out, it seems that it's not possible to have the promotion code taken into account before the net total

#

(for the invoices that are created automatically by Stripe upon checkout completion)

#

Now I was wondering if I could create an own checkout page that would add the promotion code/coupon in such a way that the afterwards generated invoice resembles the Case #2 where the discount is taken into account before net total

signal axle
#

I don't think that's possible but I honestly don't understand the screenshot you have, they are not in a language I speak. Can I ask you to write down a concrete example in words in English about what you expect?

#

Does your code handle source.failed event? Also are you using a third-party plugin or writing the code yourself?

late harbor
#

Essentially, when a user completes a subscription via the checkout page where he enters a promotion code, the invoice looks something like this:

  • Item #1 : 10$ (excl. 19% vat)

Net total: 10$
Discount (10%): 1$

19% vat: 1.71 $

Total due: 10.71 $

However, this form is not valid here in Germany above a certain transaction amount.
The actual net amount (which would be 9$ in this case) has to be written on the invoice.

#

When creating an invoice manually via the dashboard, this is not a problem. However I'm looking for a solution to implement into the stripe checkout (or a custom checkout page)

#

I can't view that source. What should it be?

signal axle
#

ah my bad wrong link sorry I think I mixed up the threads

#

And okay yeah that flow is something we don't support unfortunately. You'd have to build your own invoices overall, your own PDF, etc.

late harbor
#

Alright, thank you for your help!