Ok I have now managed to remove the Receipt Screen with the API by using the following code: Just posting this here as there seems to be no one that could explain how to do it and several people were looking for this solution.
Just enter
“”“skip_receipt_screen”“:true” & _
“},” & _
After your device Options line in the code (full code that I use is below)
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
I’m glad you found a solution to skip the receipt screen in your implementation. It seems like you’ve added the "skip_receipt_screen": true option to your JSON request body, which is a useful way to customize the checkout flow to better fit your needs. This can be particularly helpful in streamlining the user experience by removing unnecessary steps. If others are looking for similar functionality, your approach could be a valuable reference.