I got an email from Paypal saying (below). And I cant find anything to help me fix it, Im using the Opencart standard payment gateway called "PayPal Website Payment Pro iFrame" and I do not know how to update it. any help would be appreciated.
We are contacting you regarding a change that you are required to make by 30th August 2015.
PayPal has detected that you have hard coded the following Pro Hosted Solution URL in your code:(Had to remove link)
PayPal does not recommend hard coding. Instead, you should read the URL from the button creation API response.
If you must hard code this URL, you need to update it to the following: https://securepayments.paypal.com/webap ... ionProcess
You can find comprehensive instructions regarding the required integration changes on our Technical Support Help Centre: https://ppmts.custhelp.com/app/answers/detail/a_id/1231
Click the above link or visit the PayPal Technical Support Centre and search for article ID ‘1231’ or ‘Updating API Integration for Pro Hosted’ for instructions on ensuring that your payment processing is not interrupted when we stop supporting the current hardcoded URL.
Important: you must either read the URL from the button creation API response or update your hard code URL by no later than 30 August 2015. Otherwise, your existing hard coded Pro Hosted Solution URL will not be supported after that date.
If you require any additional support, our Merchant Technical Support team are on hand and ready to help. You can contact them by opening a ticket on ...
Thank you for your time.
Bumping for answer as this affects my site as well.
I'm contacting Paypal to see if their integration team can assist me and if I do get any results I'll post back but if anyone else has already dealt with this it would be very useful.
I'm contacting Paypal to see if their integration team can assist me and if I do get any results I'll post back but if anyone else has already dealt with this it would be very useful.
Okay... This might be jumping the gun but I think this is it. I'm going to have someone at PP check over my work so to speak but I believe the solution to this is as follows:
catalog/controller/payment/pp_pro_iframe.php
starts line 14 on mine - replace:
with
Same file little further down - around line 51 for me:
replace
with
I've already put through a test payment and it seems to be working okay but I'm getting PP to check it over to be 100%
catalog/controller/payment/pp_pro_iframe.php
starts line 14 on mine - replace:
Code: Select all
if ($this->config->get('pp_pro_iframe_test')) {
$data['url'] = 'https://securepayments.sandbox.paypal.com/cgi-bin/webscr';
} else {
$data['url'] = 'https://securepayments.paypal.com/cgi-bin/webscr';
}
Code: Select all
if ($this->config->get('pp_pro_iframe_test')) {
$data['url'] = 'https://securepayments.sandbox.paypal.com/cgi-bin/webscr';
} else {
$data['url'] = 'https://securepayments.paypal.com/webapps/HostedSoleSolutionApp/webflow/sparta/hostedSoleSolutionProcess';
}
replace
Code: Select all
if ($this->config->get('pp_pro_iframe_test')) {
$data['url'] = 'https://securepayments.sandbox.paypal.com/cgi-bin/webscr';
} else {
$data['url'] = 'https://securepayments.paypal.com/cgi-bin/webscr';
}
Code: Select all
if ($this->config->get('pp_pro_iframe_test')) {
$data['url'] = 'https://securepayments.sandbox.paypal.com/cgi-bin/webscr';
} else {
$data['url'] = 'https://securepayments.paypal.com/webapps/HostedSoleSolutionApp/webflow/sparta/hostedSoleSolutionProcess';
}
lennone wrote:Damn, you gotta love the forum's - anyway...
Please do let me know if PP say its ok?
Is there a diagnostic? or a way to check compliance?
Hi Lennone
Got in touch with PP and they have confirmed that this is the correct fix for this issue. They've checked my site and it is okay.
The best way for you to make sure on your own site would be two fold.
1. Put the changes into place and put a test order - actual money not sandbox - through the site. It should clear correctly.
2. Open an account on http://www.paypal.com/mts and ask them to check your site for this. It's what I did and they answered with 24 hours.
Hope this helps you out
I can confirm that this fix works. Just used and tested it on my website. Thank you Simon_Romin
I have attached the full file to this post, but please note the file I upload has only been tested on OpenCart version 1.5.6.4.
I have attached the full file to this post, but please note the file I upload has only been tested on OpenCart version 1.5.6.4.
Thanks for posting this solution. PayPal warnings should not be ignored but rather be considered in order to apply the required changes.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 36 guests