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

feat: payer name & email from web form #47

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

batonac
Copy link
Contributor

@batonac batonac commented Oct 2, 2023

This PR aims to add a feature to allow for sourcing the "Payer Name" and "Payer Email" in a payment gateway checkout form dynamically from web form fields.

Additionally, the Payment Form fields are cleaned up and moved to the dedicated custom fields JSON spec, instead relying on scripting to add and remove the custom fields. I believe this approach is cleaner, but I defer to the judgment of the maintainers in this regard.

The PR pre-supposes the removal of "Button Label" & "Button help" custom fields, as referenced in #4 and worked towards in #5.

Before (backend):

before.refactor_backend.mp4

After (backend):

after.refactor_backend.mp4

Before (frontend):

before.refactor_frontend.mp4

After (frontend):

after.refactor_frontend.mp4

@batonac
Copy link
Contributor Author

batonac commented Oct 3, 2023

I forgot to mention, my original motivation for the migration of custom fields to the "customizations API" (or whatever it's called) was not just because it's cleaner, but because Frappe automatically implements any changes that are made to the custom fields on "migrate". The exception to this, is that deleted fields should still be removed manually with some kind of migration script.

@batonac batonac changed the title feat: dynamic payer name & email from form fields feat: payer name & email from web form Oct 3, 2023
@batonac
Copy link
Contributor Author

batonac commented Nov 21, 2023

@ankush could I get a review on this so I know how to proceed? Thanks!

Modify pyproject.toml and .gitignore to support newer versions of stripe.
…g debugging. Add custom_redirect_to_override option in stripe_settings.py finalize_request() so that the successful payment redirect address can be fully customized.
@batonac
Copy link
Contributor Author

batonac commented Jan 23, 2024

@rohitwaghchaure ?

@batonac batonac deleted the branch frappe:develop March 21, 2024 15:10
@batonac batonac closed this Mar 21, 2024
@batonac batonac deleted the develop branch March 21, 2024 15:10
@batonac batonac restored the develop branch March 21, 2024 15:16
@batonac batonac reopened this Mar 21, 2024
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.

None yet

1 participant