Hi everyone. I need help on creating more line items in the Stripe receipt that is automatically sent to the customer. I have created a form that allows my customers to pay their bill online and I have added a small percentage charge for processing online payments. I would like this charge to display as a separate line item on the Stripe receipt. Right now on the receipt, it just has one line item for the total amount and does not itemize it to 1) bill amount and 2) processing fee. Does anyone know how to implement this?
Hello,
You can add a dummy Text element, get the id of it, set the text to be whatever you calculate it to be by the percentage.
Example:
// Parse the text inside the total amount to be an integer
let totalAmount = parseInt($('#totalAmountText').text);
$w('#processTaxText').text = calcTax(totalAmount);
//Here we calc Tax to be 10% of whatever the total is, change as needed
function calTax(total){
tax = total * .10
return tax;
}
Hope this is what you are asking, also make sure to put this code in the $w.onReady() function.
Best,
Majd
Hi Majd,
Thank you for your response! This is part of what I am looking for (thank you!) but the other part is the Stripe automatic receipt. Below is a screenshot of the receipt with only one line item and that is the description that I pass to Stripe. I was wondering if there is a way to separate into two line items so that the customers can see a breakdown of the bill and the fee instead of lumping into one line item. As you can see from the screenshot, I can make do with just listing everything in the description but it looks better if I could break it down to two line items / descriptions. Thank you!
Hello,
Since this is Wix app, the customization on this is limited, You can create a ‘detailed report’ section and include whatever you want in the detailed report and customize the line breaks and how the report is formatted. This detailed report will be under the official one.
Best,
Majd
That’s really fantastic to know about. Thank you so much for providing an innovative and ecstatic knowledge. Must Check this: http://www.crunchytricks.com/2015/08/online-fake-receipt-maker-generator-tools.html