I am implementing stripe payment feature in my angular project. I am succeed with stripe form customization.
My Actual problem is start here. When User enter Card Detail and press PAY button. loader is spin inside pay button. But Still user can change card number and other details.
I want to disable all form field when stripe payment process is executing. I did try a lot for search solution but failed to get single solution.
Is there Any way To disable form field when payment process is executing ?
In your form submit handler, or the click handler of the submit button, it's common to disable both the submit button and the card element so that users don't change the card details.
You can disable the Stripe Element using the update method on the element [1] and passing disabled: true.
card.update({ disabled: true });
Here is a JS Fiddle to demonstrate: https://jsfiddle.net/utdz6pkr/1/
[1] https://stripe.com/docs/js/element/other_methods/update?type=card#element_update-options-disabled
Related
I have a program running in an environment that supports URLs, but no javascript.
Say it's a Word document (though it's not).
Is there a way to craft the PayPal payment URL such that it's all that I need, without the requirement of an HTML form or Javascript?
http://paypal.me basically exists for simple things
You can create a Buy Now button via https://www.paypal.com/buttons with NO dropdown menus or text fields (which require HTML) and then, once you've generated your button code, clicking on the "Email" link above will give you a URL.
If you also want the URL to have editable fields, then before you create the button, in Step 2 uncheck the option to save the button at PayPal, generate the code, and click the link to remove code protection. Variables are documented here: https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/Appx-websitestandard-htmlvariables/#technical-variables
I'm trying to track form completions on a page where the form's URL is the same as the confirmation page.
Form Page
Does anybody know if this can be done with Google Tag Manager/Google Analytics please?
Completion page
Simply tracking clicks of the Submit button will result in false positives because sometimes people will not type the security code correctly.
Is there a tracking code of some sort that can be added to the confirmation page, so that each time it loads the count goes up one?
I'm grateful of any help you can provide.
Thanks!
You can use the built-in visibility trigger - e.g. as soon as a link element with the link back to the homepage becomes visible you let the trigger fire. Specifics depend on the CSS id or class for that link (if any, else you'd have to test the click text).
In the visibility trigger you might have to enable "listen for DOM changes" if the confirmation message is loaded per Ajax (as opposed to just have their CSS display property set to 'none'.
I have problem with my x-cart website. When I click on "Buy Now" button on one product, and after that I click on "My Cart" which is the checkout section, it returns that my cart is empty although I already click to buy product.
Here is my website: http://www.farlin-cambodia.com/home.php?cat=591
How can I fix it?
The store you're referring to is of version 4.1.6, that's an old version where there were no adding to cart without redirect (with ajax). The behaviour in question is still there, thus the feature is added as a custom mode.
If JS is enabled in the browser, and if the store considers that it's enabled, the JS script is supposed to send some data to script minicart_content.php, and the php script is to process the received data further. However it doesn't happen, and there are no JS errors, which makes me believe that the problem is in the code of minicart_content.php, with this file is very likely being modified too.
If JS is disabled in the browser ( and if you click the corresponding button in the store in the pink side menu block - "If Javascript is disabled in your browser click here"), this custom scenario is not applied, so the store uses the default functionality which allows to add the products to cart with out problems.
Thus, the possible solution is:
roll back the custom changes you implemented, and use default functionality (adding products to cart with a redirect to cart page)
or
check the minicart_content.php script and find out, why it doesn't want to properly process the data sent by JS script
If you're not sure how to achieve this, consider contacting X-Cart support team for further investigation. Not sure if I can give a link to X-Cart support here, but I'm sure you'll easily find it, if only try to search=)
Now I'm addind parameter - handling, but in Paypal page gedding label Shipping and handling , this label is not correct form me bacause I sell inteligence items and there is no shipping.
What parameter is same as handling but have label Handling
I try all items from this official page, but no one is what I need.
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
As far as I know you can't change the name of the parameter corresponding on the checkout page . Instead you use the cart upload button and pass the "handling" as line item so that it will be shown as another item on the checkout page .
Kindly refer the below link :
https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/cart_upload/
You can click the below link to see how it will look like :
https://www.paypal.com/cgi-bin/webscr?cmd=_cart&upload=1&business=seller%40dezignerfotos.com&item_name_1=Item+Name+1&amount_1=1.00&item_name_2=Handling&amount_2=2.00&
I've set up a subscription button using the guide here, however, it makes you select the price during the set up process.
Is there anyway I can define this value in the form, as the subscriptions I want to use will vary quite a lot depending on other factors.
Any advice appreciated.
Thanks
If you're going to create buttons through your PayPal account you can't modify the HTML code to make the amount value (a3) be a text field. You'll need to create a custom button or an unhosted button so have the full HTML code and can change the "hidden" field to a "text" field.
When you're creating a new button through your account there is an option in Step 2: Track inventory, profit & loss you'll need to uncheck called "Save button at PayPal". After that you'll need to click the "Remove code protection" link to get the full HTML code you can modify however you want.