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

Error "Template not found: pay-fees/enupal/stripe/create-checkout-session" when SCA enabled - SCA #213

Closed
hassanmah opened this issue Sep 8, 2021 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@hassanmah
Copy link

Description

Hi,

I get this JS error when I try to submit the form with SCA. I followed all the steps, including setting up the Webhook. No custom template is use.

Steps to reproduce

  1. Submit form, nothing happens and response is 404 and the above error message.

Additional info

  • Craft version: 3.7.11
  • PHP version: 7.3
  • Database driver & version: SQL
  • Plugin version: 3.3.5
  • Is SCA and Stripe Checkout enabled?: Yes
@hassanmah hassanmah changed the title Error "Template not found: pay-fees/enupal/stripe/create-checkout-session" when SCA enabled Error "Template not found: pay-fees/enupal/stripe/create-checkout-session" when SCA enabled - SCA Sep 8, 2021
@andrelopez andrelopez self-assigned this Sep 8, 2021
@andrelopez
Copy link
Member

andrelopez commented Sep 8, 2021

@hassanmah could you please refresh the page and send me the source code generated by the browser to support@enupal.com ? Also could you please do it two times and send me two separate files?

@hassanmah
Copy link
Author

hassanmah commented Sep 8, 2021

@andrelopez sent both source file

andrelopez added a commit that referenced this issue Sep 9, 2021
Fixes issue on create-checkout-session #213 and fixes issue on #193
@andrelopez andrelopez added bug Something isn't working and removed need more info labels Sep 9, 2021
@andrelopez
Copy link
Member

Hi @hassanmah We just released Stripe Payments v3.3.6 with a fix to this issue. Please update your plugin and let us know how it goes.

@hassanmah
Copy link
Author

hassanmah commented Sep 10, 2021

Hi @andrelopez I'm still getting the same issue with this with SCA switched on.

I've had to switch it off for now

@hassanmah
Copy link
Author

hassanmah commented Sep 10, 2021

We can also set up a new form on a new page and now getting same error but different url

image

@andrelopez
Copy link
Member

@hassanmah The issue is related to the last / at the end of the URL. Could you please test with https://www.chigwell-school.org/fee-payment

@hassanmah
Copy link
Author

@andrelopez That worked

Thanks

PS. I've emailed you regarding a point.

@MattWilcox
Copy link

MattWilcox commented Sep 13, 2021

We are seeing this error also, using 3.3.6 on Craft 3.7.12

We get the error regardless of whether the product URL has a slash at the end or not.

Here's the page with the form on it:
http://mcs19.website.local/products/emc-field-strength-solutions/safety-monitors/fieldsense-2-0 and here's the console.log error:
http://mcs19.website.local/products/emc-field-strength-solutions/safety-monitors/enupal/stripe/create-checkout-session 400 (Bad Request)

fieldsense-2-0 is missing from the path of the console

the calling code:

{% set options = {
	amount: vatAmount,
	quantity: 1,
	calculateFinalAmount: false,
	itemName : entry.title,
	itemDescription : entry.sku,
	checkoutCancelUrl: entry.url
} %}
{% do craft.enupalStripe.addVariables({ entry: entry }) %}

{{ craft.enupalstripe.paymentForm('productForm1', options) }}```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants