Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom name, description at checkout. And receipt_thank_you_note. #34

Merged
merged 3 commits into from
Jul 18, 2023

Conversation

UrosCodes
Copy link
Contributor

This will add support for custom name and decription during the checkout by providing the $productName and $description.

name - A custom name for the product
description - A custom description for the product
receipt_thank_you_note - A custom thank you note to use for the order receipt email

And still didnt get to know how to make this receipt_thank_you_note work.
Do you have any suggestion how make this work?

UrosCodes and others added 3 commits July 6, 2023 22:31
Checkout have name description of product
@driesvints driesvints merged commit a2ff1b7 into lmsqueezy:main Jul 18, 2023
2 checks passed
@driesvints
Copy link
Collaborator

Thanks! I adjusted this a bit

@UrosCodes
Copy link
Contributor Author

UrosCodes commented Jul 20, 2023

Thank you for adding this.

It seems that ->withthankYouNote is not working for some reason.
I use test mode and it always throw default message and not custom message from receipt_thank_you_note

@driesvints Can you check why it is not working?

@driesvints
Copy link
Collaborator

@UrosCodes you might want to reach out to lemon Squeezy support for that because afaik we’re using the key as intended in the api docs

@chimit
Copy link

chimit commented Jul 1, 2024

I believe the withThankYouNote() method works but only in invoices. It would be nice if we had a way to customize the thank you message in the modal after successful payment.

@UrosCodes
Copy link
Contributor Author

I believe the withThankYouNote() method works but only in invoices. It would be nice if we had a way to customize the thank you message in the modal after successful payment.

You can do it directly here:
https://docs.lemonsqueezy.com/help/checkout/customizing-confirmation-modal

@chimit
Copy link

chimit commented Jul 1, 2024

Yes, but it would be convenient to define it from code. E.g. for localization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants