Woocommerce SFTP Download link not appear in email after complete purchase - php

Problem
While purchase digital products the download link is not list in email and order complete page.
My Analysis
I have completed one e-commerce application using woocommerce. Previously the site was on http:// with FTP and working well. Now site is shifted on live environment. site has SFTP now.
Orders are not saved into _woocommerce_downloadable_product_permissions table. But while http:// order saved into this table.
I have checked the apache logs and it shows this type of error log.
Cline denied by server configuration /var/www/html/site/wp-content/uploads/woocommerce_uploads/2017/09/file.pdf
Are there any file configurations that i missed?
However this is perfectly work for the Debit card transaction but not work for the paypal. i have asked to paypal that i missed any confugration accrding to woorocmmerce documentation, they told me configuration in paypal are correct.
IPN and PDT (payment data transfer).

Related

Session cookies getting 'lost' when payment portal process completes

I have recently taken over the running of a hotel website which is linked to a bespoke booking management system. Because of this, it was simpler to leave all the previous developer's PHP code in place on the booking and payment pages of the website (The site uses stripe.com to process payments)
When a payment is processed, a PHP script is used to create a number of session cookies to record things like Room Number, Booking REF Cost etc then the site enters the Stripe portal which picks up the cookies and processes the payment - this is where things seem to go wrong.
The payment is processed successfully, all the info is displayed on the Stripe screen so I know it's reaching their server however when the browser is the forwarded back to the payment successful page on my new site, all the information stored by the cookies seems to vanish so the confirmation page fields are all blank.
Just to reiterate, this is code which was used on the old site for several years and which is still working on that site now (it's still live) - the info only disappears when Stripe returns to my new site.
So far as I can see, the PHP is identical on old and new sites. The only major differences are the domain hosting the old and new site are different (the new site is on our testing server) and obviously the servers are different.
The version of PHP used by the old site is 5.6 which I know is deprecated however I'm paying our hosting company (IONOS) £7.99 per month to enable support for this version and everything to this point has worked fine.
I've talked to Stripe support (useless) in case it was a security issue linked to the new testing server domain needing to be registered with them - they say it isn't. I'm hoping I don't get a succession of 'upgrade to the latest version of PHP' comments on here - we will do that eventually but it's so close to being done - this is one of the final tasks.

Wordpress Paid Membership Pro not adding user to members list on checkout

I have been trying to configure a PMPro/Buddypress site for a few days now and I am having issues with PMPro. When I complete the checkout process the user gets added to the wp_users table, but is not added to the wp_pmpro_membership_users table, which means that a user does not have access to BuddyPress until their user level is updated manually by the admin user.
How can I have the user added automatically to the wp_pmpro_membership_users table upon successful signup?
But to answer the question:
The payment/member workflow was failing because my local dev machine doesn't have SSL. The payment looked like it processing fine in Stripe, yet there was no indicator from the plugin (or elsewhere) that it was failing due to lack of SSL.
Once SSL was enabled, it worked as expected.

How to fix could not connect to host in checkout page in Joomla using Red shop

I am working in a Joomla website which use Red shop for his store. Everything works fine, after i update joomla to 3.5.1 the payment module Credit Card (Visa and MasterCard only) is not working.
When a user go to cart page and give the card deials and click in checkout it shows "0 Error Could not connect to host"
redshop_payment/rs_payment_scnet/rs_payment_scnet.php
It seems that you are trying to open a remote URL from your application. For security reasons, many PHP instances do not allow that, and so you must ensure that allow_url_fopen is enabled in your php.ini file (note that Apache must be restarted after you enable it).
If the issue still persists, then please post the relevant content of the problematic file here.

Woocommerce check out won't stop spinning

I have finally come to the last stage of developing this store and would like to have it up and running today. However, after I installed stripe payment gateway and did the final test by purchasing the goods with PDF file attachement ready to download, it appeared that the checkout page won't stop spinning and did not take me anywhere. When I inspected element to see the error it showed up like in the picture below.
"Failed to load resource : the server responded with a status of 500 (Internal Server Error)"
You can see the store at http://www.pata.org/shop
I did examine at System status of woo commerce and found that my PHP limit is too low so I set it up to 96MB. Still it has the same problem. I am using shared hosting plan with bluest right now. I am not sure if that cause the problem.
I disable AJAX but Stripe payment gateway did not let me process the payment.
Has anybody ever experienced this? How to fix this?
Thank you.

Payment Gateway integration in Opencart

I want to integrate CitrusPay (An indian payment gateway) in my opencart application. I have received a PHP integration kit but don't know where to start in opencart. Please let me know how to add Citruspay as a payment method.
You can edit and modify these files:
/var/www/opencart/catalog/controller/payment
/var/www/opencart/catalog/model/payment
/var/www/opencart/catalog/view/theme/
You can see two folder default and other one you can place it in that other folder in that folder should have template/payments here you have put your .tpl file - PHP MVC.
Then take your admin:
/var/www/opencart/admin/controller/payment
Here you can see other payment file you have to place your admin controller file here, here you can put your admin view file /var/www/opencart/admin/view/template/payment then take your localhost/opencart/admin here you can see the extensions->payments here you can see the available payments and your file, you can install/uninstall from here
The easiest way to integrate a new payment gateway is to take a look at a current opencart payment gateway that works in a similar fashion. The Paypal pro extension comes free with opencart, and while you will need to customise it to your needs it serves as a good base for your gateway. Of course, that works based on a CC field. If you're using a third party gateway page, something more along the lines of SagePay may be of use instead
The readme document in the zip has the whole process described.
Take a backup of your existing Opencart installation incl. Mysql Database, before installing a new module.
Unzip the content of the module zip in a folder. Upload (FTP) all 3 folders (admin, catalog, citrus) to your Opencart root folder. Select yes when it asks for overwrite.
Now in Opencart login to your admin account and go to Extensions-> Payments option.
It will show you Citrus Payment® Instant Checkout as highlighted in the above image.
Click Install option in the right to install the module in Opencart engine.
After installation is over you will see Edit button. Click on Edit option to setup the options.
(a.) Fill up Vanity/Payment Url, Merchant Access Key and API Key as provided by Citrus.
(b.) Gateway Module option will be “sandbox” for sandbox/test version and “production” for live version.
(c.) Change Status option to Enable or Disable to make Citrus Payment Gateway enable or disable.
(d.) Give Sort Order and Order Status as per your choice.
Now click save and customer will get Citrus Payment® Instant Checkout in checkout process.

Categories