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

Form not working at all #48

Closed
Coysh opened this issue Sep 12, 2019 · 9 comments
Closed

Form not working at all #48

Coysh opened this issue Sep 12, 2019 · 9 comments
Assignees

Comments

@Coysh
Copy link

Coysh commented Sep 12, 2019

Description

I'm migrating across from lukeyouell/craft-stripecheckout as the plugin is dead, and we need support for SCA.
No matter what I do, I can't get this plugin to work.
I've set up a payment and am displaying it on the frontend as follows:

{% set options = {amount: payment_amount, quantity: 1, calculateFinalAmount: true} %} {{ craft.enupalstripe.paymentForm('buySent', options) }}

The "Pay by card" button shows, but if I click it - I get a Unable to process the Payment error.

I've noticed that in the amount/token fields arn't being populated, as you can see - but can't work out why.
image

I've got SCA enabled, and trying to use Stripe checkout

Additional info

  • Craft version: 3.3.1.2
  • PHP version: 7.2
  • Database driver & version: mySQL 5.7.20
  • Plugin version: 2.0.6
@andrelopez
Copy link
Member

andrelopez commented Sep 12, 2019

Hi @Coysh,

  • Could you please review your templates and make sure that the {{ craft.enupalstripe.paymentForm('buySent', options) }} tag is outside of any {% cache %} tag ?
  • Is there any error in the devtools console in your browser?
  • Have you already load jquery in that template?

@Coysh
Copy link
Author

Coysh commented Sep 12, 2019

Hi @andrelopez

  • The code is not within cache tags
  • No errors in devtools console
  • jQuery is already enabled

Tim

@andrelopez
Copy link
Member

If jQuery is already loaded in your templates, could you please go to Stripe Payments -> Settings -> Defaults and disabled the "Load Jquery" lightswitch? and then please try again?

@Coysh
Copy link
Author

Coysh commented Sep 12, 2019

Tried again - no success

@andrelopez
Copy link
Member

Ok. Please enable the "Load Jquery" setting again. Did you get the same behavior in an incognito browser tab or a different browser?

@Coysh
Copy link
Author

Coysh commented Sep 12, 2019

Sorry - Same problem in both Safari and Chrome - and in Incognito mode on both.

@andrelopez
Copy link
Member

Could you please load the page, right-click and click on "View page source" copy all the code in a .txt file and send back to us to support@enupal.com ?

@Coysh
Copy link
Author

Coysh commented Sep 12, 2019

Done.

@andrelopez
Copy link
Member

The issue was due to a wrong display of the {{ craft.enupalstripe.paymentForm('handle', options) }} tag was inside of a <form> tag

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

No branches or pull requests

2 participants