Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › WP Photo Seller – Problem after purchase
Tagged: redsys gateway
- This topic has 11 replies, 3 voices, and was last updated 7 years, 6 months ago by Peter.
-
AuthorPosts
-
May 19, 2017 at 12:26 pm #14257noubitMember
Hello,
I finished configuring the WP Photo Seller Plugin, and now I’m testing it.
For some reason, when I try to buy a photo, I can complete perfectly the purchase, via paypal and via RedSys. After paying the purchase, the ThankYou page doesn’t show the download links, it justs display the thankyou message and the {product_link_digital_items_only} tag (not transformed as a link)
I already turned on the checkbox “Click this to display…” and I entered the tag {product_link_digital_items_only} in plain text mode to avoid text formatting…
Although that the purchase is payed, the confirmation email is not sent, and the Admin panel of the plugin doesn’t register any transaction. It’s like no sell was made…
I think I configured the PayPal Gateway correctly, introducing the IPN address, changing encoding to UTF-8…
Any suggestions?
Thanks!
May 20, 2017 at 1:53 am #75706adminKeymasterYou have already done the following to enable the IPN feature in your account correct?
https://www.tipsandtricks-hq.com/ecommerce/how-to-setup-paypal-ipn-notification-2796
Enable the debug option in the plugin then do a test transaction via paypal so we can see if the plugin is getting the IPN message or not.
You may have a security or firewall plugin that is blocking the paypal IPN (in which case our plugin won’t receive the payment notification).
May 22, 2017 at 6:59 am #75707noubitMemberI already had configured the IPN for paypal. For the Redsys Gateway, no IPN is required.
I disabled Wordfence and nothing changed.
I enabled debug option, I changed the price to 0.01 and tested another sell, and the only lines I had in the LOG.TXT are:
[LOG DATE: 05/22/2017 6:51:23 am – Server time zone UTC]
[WPSPriceList.php – line 86] No variation record found for variation type physical and price list id: 1
The purchase failed like the other attempts.
My wordpress is configured in multisite, is there a restriction with this?
Thanks
May 22, 2017 at 7:14 am #75708noubitMemberFor explain better one of the problems I have, I attach a screenshot.
[https://www.dropbox.com/s/vt7f5lx18tuqou3/WPS_problem.jpg?dl=0]
Thanks
May 23, 2017 at 12:03 am #75709PeterMemberHave you correctly configured your paypal PDT token?
Also in the advanced settings page of photo seller have you enabled “Display Download Links & Purchase Info On Thankyou Page”?
Does your thankyou page have the shortcode “[WPS_thankyou_page]”?
May 23, 2017 at 12:09 am #75710adminKeymasterPlease don’t focus on the “Thank You” page. First we need to address the email issue. The main method of processing the sale is via IPN which is what triggers the email also. So first we need to see what is going on with that. Then we can look at your thank you page setup. Also, lets focus on paypal only for now.
The debug file should have more data in there. Having only one line in there confirms that the plugin is still not getting the IPN message from paypal. So something on your site is still blocking the IPN message. Can you think of any other firewall settings on your site that is blocking the IPN?
Also, what is the URL of your photo gallery? I am going to check couple of things from my end.
May 23, 2017 at 12:29 am #75711PeterMemberIn addition to the things already mentioned, please also ensure that you have not accidentally deleted a page called “IPN”. This page should have the following shortcode:
[WPS_ipn]
This is an important page and should have been automatically created by the plugin. This page has a parent called “Store” and it has a shortcode:
[WPS_store_home]
Please do not delete any automatically created pages from this plugin.
May 23, 2017 at 11:02 am #75712noubitMemberPeter:
– Yes, in the Advanced Settings I enabled “Display Download Links & Purchase Info On Your Thankyou Page”, and in the content of this page the {product_link_digital_items_only} slug is present.
– I checked that the tankyou page [http://fotosdefotografo.com/store/thankyou] has the correct shortcode, in this case: [WPS_thankyou_page]
– I tried two configurations for the IPN message: One is just pointing to the main domain [http://fotosdefotografo.com] and the other is pointing directly to the IPN page [http://fotosdefotografo.com/store/ipn]. Now is pointed to the first one.
– The IPN page has the correct shortcode: [WPS_ipn]
– The “Store” page is there. I didn’t deleted any page created by the plugin. The shortcode in this page is: [WPS_store_home]
Admin:
– The url of one of my photo galleries is: [http://fotosdefotografo.com/photogallery/gallery3/]
and I changed the price to 0,01€ for testing purposes.
– I don’t already know what can block the IPN message. The only security suite I have is Wordfence, and I already disabled it.
– For now, noting that I just made a purchase for testing pruposes, the log contains more info than the first time I tested, but still not generating any download, no email, no amount in the admin panel.
– Can download last log here: [https://www.dropbox.com/s/jknn91z6bds2tih/log.txt?dl=0]
Please, don’t forget that I have the same issue with the other payment method, called Redsys, so the problem probably is not coming from Paypal. This payment method is integrated in the plugin and will be the very first option for my customers. The configuration I introduced into this payment method is working verified working with a woocommerce store. There is no IPN and no PDT to configure here.
Thanks, I really apreciate so much your help
May 24, 2017 at 12:10 am #75713PeterMemberOk thanks for the log info.
Looks like the IPN is successfully coming back from paypal but your server is not saving the record to the DB. One of the logs you posted has the following statement:
Failed to insert the following into the order table
Can you please check your server’s PHP error log file and let us know if you see a log with an error related to the database? (if you don’t know how to find the server PHP error log file your host support people will be happy to help you)
Also can you please log into PHPMyAdmin and verify that the following table actually exists:
“wps_orders”
May 26, 2017 at 7:55 am #75714noubitMemberHello,
For the moment, the purchase with PayPal is working OK. I just checked all the points and I regenerated the PDT token, and it started working.
Now, I only have the issue with the RedSys checkout, already integrated in the plugin. With this plugin I still have the same problem, no link, no email.
In the error_log nothing destacable. The last error related with the plugin is a operation failed because my hosting was running out of space, but I alredy solved it, and that was about 2 weeks ago.
May 27, 2017 at 3:04 am #75715adminKeymasterDo you get anything in the log file that says the plugin received the payment notification and it was trying to process it?
May 28, 2017 at 11:52 pm #75716PeterMemberAfter you complete a payment on the RedSys site, are you returned to your site’s thank you page?
-
AuthorPosts
- You must be logged in to reply to this topic.