#The option to add discount doesnt show on the payment page
1 messages · Page 1 of 1 (latest)
To resolve the issue of the discount code input not appearing on the payment page, you can follow these steps:
-
Verify Discount Code Configuration:
- Ensure that the discount codes are correctly configured in your Dodo Payments dashboard. Double-check that the discount codes are active and have not expired.
-
Check Payment Page Settings:
- Review the settings of your payment page to ensure that it is configured to accept discount codes. There might be an option to enable or disable the discount code input field.
-
Update Payment Page Integration:
- If you have customized the payment page, ensure that the integration includes the necessary code to display the discount code input field. This might involve updating the front-end code to include a form field for entering discount codes.
-
Test with Different Browsers:
- Sometimes, browser-specific issues can cause elements not to display correctly. Test the payment page on different browsers to see if the issue persists.
-
Consult Documentation:
- Refer to the Dodo Payments documentation for any specific instructions on integrating discount codes into the payment page. There might be additional steps or configurations required.
-
Contact Support:
- If the issue persists after trying the above steps, consider reaching out to Dodo Payments support for further assistance. They can provide more specific guidance based on your setup.
By following these steps, you should be able to troubleshoot and resolve the issue with the discount code input not appearing on the payment page.
This page is after you have added the discount code.
Are you using the api integration or static links?
I am using API integration. I have created the discount code already.
You need to pass in the discount code here
https://docs.dodopayments.com/api-reference/payments/post-payments#body-discount-code
Create a one-time payment for a customer.
Well, I want the user to input the discount code. Some users might have code, some might not.
Yes you can ask the user to input the discount code before initiating the payment. The same way you are collecting the billing address
In static payment links we collect all the details for you including discount code
https://docs.dodopayments.com/api-reference/integration-guide#1-static-payment-links
We are also coming up with a new type of checkout where some details are provided through api and remaining collected from customers. Will this be better for ur use case?
Yes, ideal would be this -
I can create customer with basic info - name, email and maybe pass a flag to collect rest of address etc (similar to your static links) via Dodo's payment UI. And also thats where you can add discount code too.
Basically as a dev, I want all payment related info to be handled by Dodo. I dont want to ask for address or discount code from user before I send them to payment gateway. All of this should ideally be handled by payment processor.
Got it, we are already working on this but it will take time. Currently only the above mentioned 2 options are available