IPN / PDT PAYPAL Headache - paypal

UPDATED!
I managed to get a dynamic receipt using PDT, screenshot here: http://pastebin.com/4RcTdHKd which is generated from my pdt.php here: http://pastebin.com/4RcTdHKd
Now is the question how do I manipulate the variable tx to get whats needed, for example the transaction ID to dynamically show / or not show downloadable audio/video content?
Is it a good idea to on this .php have all (there aret THAT many files) downloadable files available, but as input type=hidden and just have some condition or IF statements that check if the product id = downloadable hidden id?
I got some tips using the following code to access but havent solved it yet:
$tx_token = $_GET['tx'];

First, IPN and PDT are two completely different systems. PDT is used more for a return page, to create a dynamic receipt. IPN is used more for updating your shopping cart, database, or system. You do know what your IPN and PDT script to be the same page, as this can cause some problems. You will want to have an IPN script separate from your PDT script.
As for getting the transaction id, you can use something similar to this:
$tx_token = $_GET['tx'];
And then you can just echo out the response on to the page. You can find sample of a PDT PHP script at https://www.x.com/developers/PayPal/documentation-tools/code-sample/216627 that may better help you, or give you a working example to build off of. There are a few different ways you can incorporate this into your wordpress site, all which depend on your current set up and which option works best for you. Some merchants use plugins and use the code with their plugins, and others use an iframe and have the PDT script within an iframe.
Hope this helps. :)

Related

Linkedin member profile request failing

I need to use the member profile plugin from LinkedIn for a project. So I generated my personal "code" at https://developer.linkedin.com/plugins/member-profile . Which gives me the following standard code sample
<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="https://www.linkedin.com/in/myname" data-format="inline"></script>
Where "myname" is obviously replaced with the name at which my public LinkedIn profile is found.
My problem is that there is nothing showing, after inspecting the resulting html at a couple of frames deep there is only a hidden div with the following content:
<h2>
Your Request Could not be Completed.
</h2>
I have checked all my privacy settings on LinkedIn and they are configured to make sure all information is publicly available and there should be no reason to let this plugin fail. I even checked with a colleague and we compared settings, the settings were the same but his plugin worked and mine did not.
Does anyone know what is causing this problem? Is there a setting we are missing, which is detrimental to this plugin?
(fyi, the plugin is running from a server so there is no problem to actually get the script)
The question was asked several times here (as the LinkedIn support is unwilling to help and redirect here where developers seldom answer questions)
See this question
Linkedin Member Profile Plugin not working for some profiles
One month after it was asked (yes one month!!!), a LinkedIn dev answered:
"The problem is under investigation. Several profiles still work fine, so there isn't a systemic issue with the plugin itself, but rather with certain profiles in particular."
Note that the number of particular profiles seem to be huge, because 9 out of 10 profiles I try fail.
Nothing has changed since then...
This is not the only bug in LinkedIn which is litteraly ruining my experience with it.
I used to love LinkedIn, but the way their support is treating customers (yes I am not only a user but also a customer because I pay for ads...) + the fact that they just can't seem to detect/fix their bug is making me become very bitter about them.
So all you can do is to cross fingers and hope that somewhere, someone will finally care about this and fix the bug...

Paypal Express review page buttons not working

I have a serious issue in Paypal when I done the payment through paypal express chekout it redirect back to Mangeto on paypal/express/review page , it do not allow me to place order, the Place order button is showing disable and no action clicking on "update order data" button .
I followed the below link but I haven't got any result.
Click
Please help me,I tried from the last two days.I am ready to share admin detail if required.
Please don't suggest clear cache or enable from admin section I have done all this suggestion.
My solution was to download a fresh copy of magento and copy the files Review.php, review.phmtl and review.js to my site and it worked. I never edited those files maybe the extensions I installed changed those. Hope it helps!
After spending lots of time I got the solution for this problem.
I compressed js and css file for fast execution of my website thats why its happen after remove compression from js file, Paypal start working.

Is there a way to embed an iframe in an email with text that updates?

I want to embed an iframe inside an email that contains the 10 most recent chat messages. Is there a way to make this iframe dynamic so that it always shows the latest 10 chats regardless of when the email is opened? If the iframe is not the correct way to do this, is there a better way?
You can implement an iframe into the email - but your mail will be recognized as spam by many providers.
You should try to render your content dynamically into an image and implement that image into the email.
There kind of is a solution. It is using Dynamic CSS with a fallback of a Dynamic image to pull the information. It is not elegant really as for some clients (e.g. Outlook) this is not available at all and will only display initial information. It also utilizes a link for a style sheet which also severely limits which clients this will work in.
The fall back dynamic image is a bit more comprehensive in client support, but much harder to maintain as you will need to build something that programatically pulls the tweets (HTML webpage potentially) and then also have something that creates and hosts an image for the email to pull. This is not a short, simple thing to set up and may not be worth the required back end work for a simple email.
See this link for a bit more in-depth info on how this can be done for adding a live twitter feed into an email: https://litmus.com/blog/how-to-code-a-live-dynamic-twitter-feed-in-html-email
Since there was no accepted answer i thought i would give my input as well.
Litmus had done something similar for their live twitter feed in emails sometime ago.
The method i can think off is to create a PHP page which takes 10 images and makes it into 1. PHP can have a loop that checks for increments from a specific number and if it exists then add to that 1 image. When there is a new chat image added, PHP will disregard the last one and add the new in the loop.
For anyone reading this in 2022, this is possible with AMP.
Instead of an iframe, you can create a dynamic email easily.
check out amp.dev
Note: AMP is not supported by many email clients

X-Cart checkout is empty

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=)

Magento cart redirects to onepage checkout, how do I make it stop?

Hi I'm new to Magento, so we installed the Magento Simple checkout which is working fine but when you add a product it takes you to the cart (checkout/cart) which is fine but then it suddenly jumps to (checkout/onepage).
Both pages look pretty similar except the cart page gives me the option to keep shopping and change cart quantities and update the cart while the checkout page doesn't have this. I can never change the cart options because it always redirects.
Is there anyway to stop it from redirecting? I don't even know where to start to look so I could paste some code.
Thank you in advance.
It sounds like Simple Checkout is designed to do exactly that. If you don't like it, uninstall it. If you think there is a bug, contact the authors of Simple Checkout directly.
This is a javascript problem. If you view the source of checkout/cart/ (difficult, I know, it tries to redirect quite quickly) you might find this in it.
var checkout = new Checkout(accordion,{
progress: 'http://metrotemplate.com/checkout/cart/progress/',
review: 'http://metrotemplate.com/checkout/cart/review/',
saveMethod: 'http://metrotemplate.com/checkout/cart/saveMethod/',
failure: 'http://metrotemplate.com/checkout/'}
);
Basically it tries to POST an update to checkout/cart/saveMethod/ which is equivalent to the first step of onepage checkout. Unfortunately that URL doesn't exist, it should be POSTing to checkout/onepage/saveMethod/ in the background, instead it gets a 404 error which triggers the page to reload as the "failure" URL.
The final step is checkout/ redirects automatically to checkout/onepage/.
I cannot tell why the extension has started outputting URLs that begin with checkout/cart/* rather than checkout/onepage/*. Perhaps there is an admin setting somewhere? Maybe some over-enthusiastic template editing 'corrected' the file "template/checkout/onepage.phtml"? Or maybe Simple Checkout depends on overriding Mage_Checkout_CheckoutController and another, recent extension has it's own override which is conflicting..?