Paypoint Callback (1.5.3.1)
11 posts
• Page 1 of 1
Paypoint Callback (1.5.3.1)
Hi,
I am using a clean install and version 1.5.3.1 and the domain is http://www.love2smoke.co.uk.
Everything is working great until a customer goes to pay, they are redirected to paypoint (I'm using paypoint hosted), they enter their details and click continue. When the page loads there is just a plain white screen with the url https://www.secpay.com/java-bin/ValCard in the address bar.
The transaction goes through fine with paypoint but doesn't register with opencart (I have only tried a test transaction).
I have contacted Paypoints support team and all they said was it is a problem with opencarts call back?? I'm not great with code so any help is much appreciated.
Thanks!
I am using a clean install and version 1.5.3.1 and the domain is http://www.love2smoke.co.uk.
Everything is working great until a customer goes to pay, they are redirected to paypoint (I'm using paypoint hosted), they enter their details and click continue. When the page loads there is just a plain white screen with the url https://www.secpay.com/java-bin/ValCard in the address bar.
The transaction goes through fine with paypoint but doesn't register with opencart (I have only tried a test transaction).
I have contacted Paypoints support team and all they said was it is a problem with opencarts call back?? I'm not great with code so any help is much appreciated.
Thanks!
- hednesfordking
- Posts: 5
- Joined: Mon Jun 11, 2012 10:32 am
Re: Paypoint Callback
ohh.. yea.. that is what the error is telling you
Unknown+Customer+:+for+testing+only+use+'secpay'
For testmode you use "secpay" for both the id and key
I'll add that note to the extension
Unknown+Customer+:+for+testing+only+use+'secpay'
For testmode you use "secpay" for both the id and key
I'll add that note to the extension

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18199
- Joined: Mon Jul 21, 2008 7:02 pm

Re: Paypoint Callback
I have tried that and still no joy. I have been in touch with Pay Points support and they have reviewed their logs and are saying it's a call back issue.
I don't know if this is any use but its the callback url from one of the transactions
http://love2smoke.co.uk/index.php?route ... 8e8de17ec8.
I don't know if this is any use but its the callback url from one of the transactions
http://love2smoke.co.uk/index.php?route ... 8e8de17ec8.
- hednesfordking
- Posts: 5
- Joined: Mon Jun 11, 2012 10:32 am
Re: Paypoint Callback
hednesfordking wrote:I have tried that and still no joy. I have been in touch with Pay Points support and they have reviewed their logs and are saying it's a call back issue.
I don't know if this is any use but its the callback url from one of the transactions
http://love2smoke.co.uk/index.php?route ... 8e8de17ec8.
Yes it is.. bug confirmed.
The fix:
1. EDIT: catalog/controller/payment/paypoint.php
2. FIND:
- Code: Select all
if ($order_info && $status) {
3. REPLACE WITH:
- Code: Select all
if ($order_info) {
4. FIND:
- Code: Select all
$this->request->get['code'] == 'A'
5. REPLACE WITH:
- Code: Select all
$this->request->get['code'] == 'A' && $status

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18199
- Joined: Mon Jul 21, 2008 7:02 pm

Re: Paypoint Callback (1.5.3.1)
Thanks for that, I can now complete the transaction and get redirected to opencart.
But... When I get redirected back to my store I arrive at the shopping cart page with the items still in it. Also the transactions don't appear in the dashboard.
But... When I get redirected back to my store I arrive at the shopping cart page with the items still in it. Also the transactions don't appear in the dashboard.
- hednesfordking
- Posts: 5
- Joined: Mon Jun 11, 2012 10:32 am
Re: Paypoint Callback (1.5.3.1)
hednesfordking wrote:Thanks for that, I can now complete the transaction and get redirected to opencart.
But... When I get redirected back to my store I arrive at the shopping cart page with the items still in it. Also the transactions don't appear in the dashboard.
That means the transaction failed. are you sent to the failed message page when you return?

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18199
- Joined: Mon Jul 21, 2008 7:02 pm

Re: Paypoint Callback (1.5.3.1)
Sorry I didn't notice the final paypoint page that redirects after 10 seconds does actually state the transaction has been cancelled.
The opencart page that I am returned to doesn't say anything, it is just the standard shopping cart view.
I have my Paypoint account set to 'Authorised Transactions' and I have the Paypoint module set to 'Always Successful', paypoint recognises the transaction.
The opencart page that I am returned to doesn't say anything, it is just the standard shopping cart view.
I have my Paypoint account set to 'Authorised Transactions' and I have the Paypoint module set to 'Always Successful', paypoint recognises the transaction.
- hednesfordking
- Posts: 5
- Joined: Mon Jun 11, 2012 10:32 am
Re: Paypoint Callback (1.5.3.1)
hednesfordking wrote:Sorry I didn't notice the final paypoint page that redirects after 10 seconds does actually state the transaction has been cancelled.
The opencart page that I am returned to doesn't say anything, it is just the standard shopping cart view.
I have my Paypoint account set to 'Authorised Transactions' and I have the Paypoint module set to 'Always Successful', paypoint recognises the transaction.
Well the failed page shows you the fail and then returns you back to the cart to try again.The assumption is that the customer entered a bad card and is sent back to try again. I think only always accept works under a certain dollar amount.

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18199
- Joined: Mon Jul 21, 2008 7:02 pm

Re: Paypoint Callback (1.5.3.1)
I went to try a low value transaction, and I am experiencing the original problem again!
On checkout I am getting the blank screen again. This was working fine last night when I replied to you but now when trying to do the low value transaction I'm back at the start again.
Should I contact PayPoint and ask for their log?
On checkout I am getting the blank screen again. This was working fine last night when I replied to you but now when trying to do the low value transaction I'm back at the start again.
Should I contact PayPoint and ask for their log?
- hednesfordking
- Posts: 5
- Joined: Mon Jun 11, 2012 10:32 am
Re: Paypoint Callback (1.5.3.1)
Hi,
First of there is a nightmare list of issues with the sec pay code!
I got mine to work by downloading the svn version uploading the sec pay script from the catalog/controller/payment/ paypoint.php to the site.
this will mean the site will process the payment and not hang but it will keep going back saying its cancelled. to over come this as the status is not coming through.
so find:
$this->data['continue'] = $this->url->link('checkout/cart');
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/paypoint_failure.tpl')) {
$this->template = $this->config->get('config_template') . '/template/payment/paypoint_failure.tpl';
} else {
$this->template = 'default/template/payment/paypoint_failure.tpl';
}
$this->children = array(
'common/column_left',
'common/column_right',
'common/content_top',
'common/content_bottom',
'common/footer',
'common/header'
);
$this->response->setOutput($this->render());
and replace it with the code below!
$this->load->model('checkout/order');
$this->model_checkout_order->confirm($this->request->get['trans_id'], $this->config->get('config_order_status_id'));
$message = '';
if (isset($this->request->get['code'])) {
$message .= 'code: ' . $this->request->get['code'] . "\n";
}
if (isset($this->request->get['auth_code'])) {
$message .= 'auth_code: ' . $this->request->get['auth_code'] . "\n";
}
if (isset($this->request->get['ip'])) {
$message .= 'ip: ' . $this->request->get['ip'] . "\n";
}
if (isset($this->request->get['cv2avs'])) {
$message .= 'cv2avs: ' . $this->request->get['cv2avs'] . "\n";
}
if (isset($this->request->get['valid'])) {
$message .= 'valid: ' . $this->request->get['valid'] . "\n";
}
$this->model_checkout_order->update($order_id, $this->config->get('paypoint_order_status_id'), $message, false);
$this->data['continue'] = $this->url->link('checkout/success');
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/paypoint_success.tpl')) {
$this->template = $this->config->get('config_template') . '/template/payment/paypoint_success.tpl';
} else {
$this->template = 'default/template/payment/paypoint_success.tpl';
}
$this->children = array(
'common/column_left',
'common/column_right',
'common/content_top',
'common/content_bottom',
'common/footer',
'common/header'
);
$this->response->setOutput($this->render());
note that you need to keep an eye on the payments going through... match your sec pay emails to your order emails... but it means it works and the customer gets all the correct screens and your orders get the correct status!
Once i have fixed the status issue will upload it again!
First of there is a nightmare list of issues with the sec pay code!
I got mine to work by downloading the svn version uploading the sec pay script from the catalog/controller/payment/ paypoint.php to the site.
this will mean the site will process the payment and not hang but it will keep going back saying its cancelled. to over come this as the status is not coming through.
so find:
$this->data['continue'] = $this->url->link('checkout/cart');
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/paypoint_failure.tpl')) {
$this->template = $this->config->get('config_template') . '/template/payment/paypoint_failure.tpl';
} else {
$this->template = 'default/template/payment/paypoint_failure.tpl';
}
$this->children = array(
'common/column_left',
'common/column_right',
'common/content_top',
'common/content_bottom',
'common/footer',
'common/header'
);
$this->response->setOutput($this->render());
and replace it with the code below!
$this->load->model('checkout/order');
$this->model_checkout_order->confirm($this->request->get['trans_id'], $this->config->get('config_order_status_id'));
$message = '';
if (isset($this->request->get['code'])) {
$message .= 'code: ' . $this->request->get['code'] . "\n";
}
if (isset($this->request->get['auth_code'])) {
$message .= 'auth_code: ' . $this->request->get['auth_code'] . "\n";
}
if (isset($this->request->get['ip'])) {
$message .= 'ip: ' . $this->request->get['ip'] . "\n";
}
if (isset($this->request->get['cv2avs'])) {
$message .= 'cv2avs: ' . $this->request->get['cv2avs'] . "\n";
}
if (isset($this->request->get['valid'])) {
$message .= 'valid: ' . $this->request->get['valid'] . "\n";
}
$this->model_checkout_order->update($order_id, $this->config->get('paypoint_order_status_id'), $message, false);
$this->data['continue'] = $this->url->link('checkout/success');
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/paypoint_success.tpl')) {
$this->template = $this->config->get('config_template') . '/template/payment/paypoint_success.tpl';
} else {
$this->template = 'default/template/payment/paypoint_success.tpl';
}
$this->children = array(
'common/column_left',
'common/column_right',
'common/content_top',
'common/content_bottom',
'common/footer',
'common/header'
);
$this->response->setOutput($this->render());
note that you need to keep an eye on the payments going through... match your sec pay emails to your order emails... but it means it works and the customer gets all the correct screens and your orders get the correct status!
Once i have fixed the status issue will upload it again!
- webdesignportchester
- Posts: 1
- Joined: Mon Jul 09, 2012 11:53 pm
Re: Paypoint Callback (1.5.3.1)
We are also having this exact same problem, using OpenCart 1.5.4.
From what I can see, the code fix provided by Qphoria is predefined in our catalog/controller/payment/paypoint.php file i.e. we did not have to change it.
When using IE8, after placing and confirming an order we are taken to the PayPoint Gateway. After entering card details, we are always directed to the "paypoint_failure" page and then back to the cart page in store - even when a payment has been successful. What is the reason for this?
It is also worth mentioning that this "payment_failure" page is not displayed in Chrome ( I have not managed to try other browsers as of yet), instead it simply displays a blank page that does not redirect at all. Having contacted PayPoint about this and their response was:
It appears to me that these callback pages are built there and then depending on whether PayPoint confirms it as successful or failure? Or at least should do... So, again using the stock coding, what would Chrome be seeing as an "insecure link" preventing it from showing the page?
Thanks for your help,
Lee.
From what I can see, the code fix provided by Qphoria is predefined in our catalog/controller/payment/paypoint.php file i.e. we did not have to change it.
When using IE8, after placing and confirming an order we are taken to the PayPoint Gateway. After entering card details, we are always directed to the "paypoint_failure" page and then back to the cart page in store - even when a payment has been successful. What is the reason for this?
It is also worth mentioning that this "payment_failure" page is not displayed in Chrome ( I have not managed to try other browsers as of yet), instead it simply displays a blank page that does not redirect at all. Having contacted PayPoint about this and their response was:
There is an issue with the newer version of Chrome and IE where they just refuse to display pages with insecure content without giving you the option.
Could you double check your template page and remove any insecure links - this should fix your problem.
It appears to me that these callback pages are built there and then depending on whether PayPoint confirms it as successful or failure? Or at least should do... So, again using the stock coding, what would Chrome be seeing as an "insecure link" preventing it from showing the page?
Thanks for your help,
Lee.
- LeeT4T
- Posts: 6
- Joined: Wed Aug 15, 2012 3:32 pm
11 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests













