#wiiim

1 messages · Page 1 of 1 (latest)

fast furnaceBOT
sand coyote
#

Can you share an example Invoice of what you're describing?

nimble sun
#

Sure, in this receipt it would need to say 49€ payed on 21th March 2023 instead of 39€. Additionally the list should contain the subscription's price item with a value of 49€ and the "Wechselprämie (10,00 € Rabatt)" says 0€ instead 0f -10€.

#

Sorry, the Receipt is in German. I hope that's fine.

sand coyote
#

Can you share the in_xxx ID of that Invoice?

nimble sun
#

Sure, let me grab it for you

#

in_1Mo79uBedPgr0Zv2GrsX1SEF

sand coyote
#

Taking a look

#

I suspect the issue is because you're passing backdate_start_date on creation

#

Normally the discount would be a specific line item

#

But because you're backdating the Subscription on creation, it's technically a prorated line item so we calculate those differently

nimble sun
#

Hmm, but we definitely need the backdate_start_date property. I've quickly created a subscription without the property, The receipt still seems similar to the one I provided earlier, so it didn't seem like it made a difference. in_1MoOCYBedPgr0Zv22Sm6MqNn is the new invoice I just created without the property.

sand coyote
nimble sun
#

I see. in_1MoOJzBedPgr0Zv2RyFNGkis now shows the coupon being applied in the invoice as -10€ and the listing is correctly shown as 49€.
I have some follow-up questions on that.
First one is the application fee when using connected accounts. For subscriptions this is a percentage, not a fixed cent value.
For the subscription we always want to take 10€ as an application fee. So we calculated the percentage accordingly. If a user now uses a coupon, the gross price drops which results in the application fee being lower than 10€. Is there somewhat a way to have the gross price still be the full price, or are coupons just working that way? I think we can calculate a different application fee if the user uses a coupon code to come back up to the 10€ again.
Second one is the Invoice Number in a Receipt: Is it possible to remove that number from the just the Receipt?

sand coyote
#

Yeah you can only use a % fee with recurring payments unfortunately, which will obviously vary if a discount is applied. One way to counter that would be to manually transfer the amounts, instead of using application_fee_percent. But that would require development overhead on your part.

#

Second one is the Invoice Number in a Receipt: Is it possible to remove that number from the just the Receipt?
You'll need to share an example here

nimble sun
#

For example this is the header of a receipt:
Under the headline there is "Rechnungsnummer" which means Invoice Number. We don't want to share that on the receipt, only on the actual invoice. We normally don't send the whole invoice to the customer, but rather just the receipt.

sand coyote
#

Hmm, I think that is the invoice. That doesn't look like a receipt to me

nimble sun
#

I copied the url from hosted_invoice_url and paid the bill and then clicked on the blue primary button saying "Zahlungsbeleg herunterladen"

sand coyote
nimble sun
#

"Zahlungsbeleg herunterladen" basically means "Download receipt"
The downloaded file is also named "Receipt-XXX-XXX" instead of "Invoice-XXX-XXX". But I highly doubt it too.

fast furnaceBOT
faint terrace
#

Hi! I'm taking over this thread.

#

Unfortunately I don' think this can be removed from the receipt.

nimble sun
#

Hey 🙂 alright, thanks for confirming it.
All questions resolved now, thanks to both of you guys!