Paypal button return URL with variables - paypal

I have added a variable to my PayPal button and it is passing it to PayPal but I have forgotten what to put into the "Add advanced variables" under step 3 of the button creation. I had this entered in the page before but when I had to change the button the return URL and all variables were removed. I do not remember where I found the information prior. An example of the return URL should look like http://example.com/ThanksForYourOrder.cfm?CustomerID=1234
The CustommerID number is sent as a button form field.

You stick it on the URL itself. The only button field you can pass apart from Paypal's define fields is custom.

Related

Accepting A PayPal Payment Through A URL With No Javascript/Form?

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

Track form conversions confirmation page URL is the same as the form

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'.

How to store text from field with Google Tag Manager on a form submission

I'm trying to catch email address as a variable with Google Tag Manager (GTM) on signup form submit on http://cloud.feedgee.com/ru/signup and fire a tag with it. On submit, the page is being reloaded.
By now tried to catch it with Form submission by form id set as shown on screenshot) and a Button click as a Custom event with it's click id
I initiated a DOM element variable with Id of the Form text field (Element Id=ContentPlace_loginEmail)
With these settings in Preview mode on Form Submit, I can not see my Tag in "Tags Fired On This Page" row before page reload.
What can be the reasons for this if Id's of the elements are correct?
May it depend on the container script location on the page?
Now It's located right after the HTML tag.
Can I store form text field in a DOM variable to use it in the tag?
If you want to store the email value in your own API, Google Tag Manager is not the right tool for you. You should only use it to track events that fit under Google's terms of use.
Having said that, when you're working with forms in GTM, hold the <shift> key with you click the submit button. If you do that, a new tab will open up, but the current page wont get redirected or refresh. You'll then be able to see what data is being pushed to the dataLayer.

Paypal subscription button - specify amount in form?

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.

Using Paypal PDT with other paypal buttons made, don't want to override success url on those?

I have multiple other paypal buy it now buttons created and active on my account.
I have it set up so it has a "success url" and "cancel url" on each.
I am now trying to POST variables back to my website to use for my own purpose.
So I have a Buy it now button on my website that has an event name text field. I am looking for an easy way to use the PDT system so after payment, it will attach some POST variable (like the event name field) so I can use it to populate another form)
The problem that I am having is the PDT requirements say that I need to have auto-return ON, but then all my other buttons that I created are screwed up and return to that other URL and not the "Success URL" that I created in the button??
I know there is a simple solution.. Thanks!!
If you have a "success url" and "cancel url" set up on all buttons, this will override whatever you specify in your Profile.
So you can just enable 'Auto Return' and start using with your new button without any worries, as all existing buttons will still return back to their proper return URL's.