Intelartifice
Member
Hi,
I try to set Stripe in very simple usage, but on submssion :
I have form_A with redirection to Form_B with {form_A___id} is load : OK
Then on Form_B Stripe plugin with stripe info of the the Form_B
(there is Form_C to with an other stripe plugin and Form_D too, ....)
All data loaded on the Form_B are loaded from Form_A with query.
The stripe plugin : just filled the price and Item
The charge Id is the PK of the Form_B
so on form load the data are loaded :
But on submission : error!
In dev tools there is a syntax error : SyntaxError: expected expression, got keyword 'var' ??? I did not edit the plugin.... The line with error :
form_8.addPlugins({'Stripe0': var stripe = new Stripe({"formid":8,"email":"user_email_address","publicKey":"pk_test_XXXXXXXXXXXXXXXXX","name":"","panelLabel":"Pay","allowRememberMe":false,"zipCode":true,"couponElement":"","productElement":"","qtyElement":"","totalElement":"","ccOnFree":false,"renderOrder":0,"currencyCode":"EUR","amount":2500,"origAmount":2500,"item":"Faure","billingAddress":false,"useCheckout":true,"failedValidation":true,"stripeTokenId":"","stripeTokenEmail":"","stripeTokenOpts":"{}"});,});
Anyone has encountered this problem ?
I try to set Stripe in very simple usage, but on submssion :
I have form_A with redirection to Form_B with {form_A___id} is load : OK
Then on Form_B Stripe plugin with stripe info of the the Form_B
(there is Form_C to with an other stripe plugin and Form_D too, ....)
All data loaded on the Form_B are loaded from Form_A with query.
The stripe plugin : just filled the price and Item
The charge Id is the PK of the Form_B
so on form load the data are loaded :
But on submission : error!
In dev tools there is a syntax error : SyntaxError: expected expression, got keyword 'var' ??? I did not edit the plugin.... The line with error :
form_8.addPlugins({'Stripe0': var stripe = new Stripe({"formid":8,"email":"user_email_address","publicKey":"pk_test_XXXXXXXXXXXXXXXXX","name":"","panelLabel":"Pay","allowRememberMe":false,"zipCode":true,"couponElement":"","productElement":"","qtyElement":"","totalElement":"","ccOnFree":false,"renderOrder":0,"currencyCode":"EUR","amount":2500,"origAmount":2500,"item":"Faure","billingAddress":false,"useCheckout":true,"failedValidation":true,"stripeTokenId":"","stripeTokenEmail":"","stripeTokenOpts":"{}"});,});
Anyone has encountered this problem ?
Last edited: