Get Forms Data in Square Payment - square-connect

I have CaptainForm plugin installed on WordPress integrated website, CaptainForm is having Square Payment Gateway integrated with it.
I have created Form using CaptainForm and having Checkout Button on it, When I click on Checkout Button, the page is taking me to below page (as shown in screen shot) . I want the Square Payment Form should automatically capture the data like Name, Address, entered on form (of CaptainForm) to its Payment Page -
Square Payment Page
Square Payment Page is only capturing the Email from CaptainForm Forms (filled on previous page)
How can i capture all the data like Name, address, etc.

The only two fields that you can pre-populate are the buyer's email and the buyer's shipping address. You will not be able to pass the buyer's name to automatically fill it out. In order to have the address populate, you need to fill out the pre_populate_shipping_address field when calling CreateCheckout. I'm not familiar with the CaptainForm plugin, so I don't know how it works with the plugin.
Reference: https://docs.connect.squareup.com/api/connect/v2#endpoint-createcheckout

Related

Display alt product/json data via shopify app proxy in existing shopify product theme

I want to display a modified version of a product page - for example, something as simple as not displaying the buy button, based on an external validation/check. theoretically, it's not that complicated, but I'm stuck.
Here is what I know/see/understand.
In liquid code, there is
templates -> product.json
sections -> main-product.liquid
I created
templates -> product.alternate.json (a duplicate of product.json minus the buy button)
snippets -> alternate-product.liquid (which is just content_for_layout)
changes in template.liquid to handle the a product template
If I change the product template to alternate - my snippet correctly loads and the alternate product without the buy button is displayed correct.
I change alternate-product.liquid to do an ajax call to to get app proxy.
On app proxy I've tried
returning the same data as product.json, liquid content type this didn't show anything in the body (header and footer are there)
using the site access token to fetch a hardcoded product by id and returning this json (content-type json), same, it's just header and footer.
What I'm trying to do is use a $.get('/apps/s/serve/some-unique-id') that will render the correct json/liquid that shows or doesn't show, the buy now button "some-unique-id" is a client side id.
I know we can manually create the needed HTML tags server side and send them - but this doesn't use the theme/style that's already applied for the rest of the shopify site.

Hyperlink re-directing to a masked URL

I am managing an e-mail campaign (containing HTML) for a customer of ours, and I am in the middle of a situation where I can't reproduce what is happening.
When I insert a hyperlink in the message body with the customer's website like : https://customer.com and send the campaign through "SendGrid" (our delivery service)a user clicks on the hyperlink in their e-mail, then it takes them somewhere completely different, it seems like the URL is masked.
When I then check the HTML source of the e-mail, instead of the link being https://customer.com it is http://https://customer.com
If I copy paste the URL in the browser then it works fine. If I create an HTML locally with the hyperlink to the customer's website, it still works fine.
Can there be something the customer needs to activate in their end?

Need to Display Buttons in Magento Frontend

I am new to Magento enterprise edition. I need to enable some buttons(Page, News & Video) regarding the product details in my front-end. On mouse click, i need to fetch data related to the product from another website through search key. Is there any solution through which we can directly fetch the data on mouse click or is there any third party tool through which we can access data
As per your requirement an my understanding you need some data to be fetched from another site on mouse click for a product.
On mouse click event you need to do an Ajax request passing the product id or something that is being identified and used by other site as a parameter

How can I redirect a user to the product if the user lands on an image popup in Magento?

The problem is that from time to time people enter the site through the image pop-up page after a search in Google, and the pop-up only has the functions to go to next image, previous image and close window. So it doesn't present the customer with the possibility to see the product page corresponding to the image pop-up thus resulting in bounce.
I would like to add a go to product page button as well, but I don't know how.
There are several options. One you can change magento 'view large' image window with some lightbox plugin that would create popup on the page and not new browser window. This would be not indexed by google. Then you can create rewrite from popup addresses to homepage (or product page).
If you want to keep the current way of displaying large images then the only way is to check the referer header and if it is not from your shop redirect customer to the page.

Add Param to Paypal Transaction

When a customer makes a paypal transaction, how can I add a parameter to their purchase? The item(s) and price come through fine, but I have an additional field on checkout that isn't being captured when purchasing through paypal.
Are you using a hosted button? If so, you can't add your own data directly. It would have to be done in the button manager, and it's very limited there because you can't use dynamic variables as values.
With non-hosted button code, you can add a parameter called "custom" and put anything you want there up to 256 characters. This will come back in IPN as a POST variable named "custom" as well.
If you're unsure about whether your button is hosted or not just look at the HTML they gave you to paste into your page. If it has a hosted_button_id you know it's hosted.

Resources