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

fix: Webform checkout #12756

Merged
merged 6 commits into from Apr 8, 2021

Conversation

hasnain2808
Copy link
Contributor

@hasnain2808 hasnain2808 commented Apr 1, 2021

We store the payment gateway details in Webform but we are passing the reference doctype.
The reference doctype does not have the gateway stuff so this error is thrown
image

To test please use the keys here

Steps to reproduce test

  1. Create a web form based on any doctype
  2. fill in the payment gateway details using the test keys
  3. go to webform
  4. fill in the details
  5. Click Save
  6. On the checkout page put the card number as 4242 4242 4242 4242 valid expiry and any test cvv
  7. Make sure that the email(in the text box as well as url) is valid
  8. click pay you should see this screen

image

for other reference implementation check payment request in erpnext

frappe/website/doctype/web_form/web_form.py Outdated Show resolved Hide resolved
frappe/website/doctype/web_form/web_form.py Outdated Show resolved Hide resolved
frappe/website/doctype/web_form/web_form.py Outdated Show resolved Hide resolved
frappe/templates/pages/integrations/stripe_checkout.py Outdated Show resolved Hide resolved
@surajshetty3416 surajshetty3416 changed the title fix: fix webform checkout fix: Webform checkout Apr 2, 2021
hasnain2808 and others added 5 commits April 4, 2021 20:15
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
@surajshetty3416 surajshetty3416 merged commit 3a7823e into frappe:develop Apr 8, 2021
@harshpwctech
Copy link
Contributor

@surajshetty3416, with the change in get_payment_gateway_url method in web_form file, the on_payment_authorized method defined in any doctype for which the payment is made isn't getting triggered.

The reference doctype and docname is getting triggered as "Web Form" and the name of the web form respectively.

Kindly let us know if there is any alternative method for this ?

harshpwctech added a commit to harshpwctech/frappe that referenced this pull request Dec 23, 2021
This change is proposed as on_payment_authorized method defined in any doctype for which the payment is made isn't getting triggered.

frappe#12756
mergify bot pushed a commit that referenced this pull request Jan 6, 2022
This change is proposed as on_payment_authorized method defined in any doctype for which the payment is made isn't getting triggered.

#12756
conncampbell pushed a commit to conncampbell/frappe that referenced this pull request Jan 9, 2022
This change is proposed as on_payment_authorized method defined in any doctype for which the payment is made isn't getting triggered.

frappe#12756
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants