I am trying to get a custom Sagepay server integration to work.
I am managing to send the initial Curl request to SAGE, get the "NextURL" from Sage and redirect.
From the Sage card selection page I am cancelling (clicking cancel in the bottom left) and getting the following error:
enter image description here
My test can be found at:
https://doors2size.co.uk/sage/server/
Click the "GO TO SAGE" link.
The NotificationURL is:
https://doors2size.co.uk/sage/server/listener.php
The code adding the NotificationURL to the initial Curl request is:
$str_post .= '&NotificationURL=https://doors2size.co.uk/sage/server/listener.php';
To keep things simple for initial testing I have not put any conditional statements on the listener file, it just returns fixed Status, RedirectURL and StatusDetail.
You can follow the link to the listener file (notification URL) and see what it is returning.
The code for the listener file is:
<?php
ob_flush();
header("Content-type: text/plain");
$redirect_url="Status=OK" . chr(13) . chr(10) ;
$redirect_url.="RedirectURL=https://doors2size.co.uk/cart/" . chr(13) . chr(10) ;
$redirect_url.="StatusDetail=".$_POST['Status']." response success." . chr(13) . chr(10) ;
echo $redirect_url;
?>
The listener file does not even seem to be getting called from SagePay.
Any help with what is going wrong here would be greatly appreciated.
Thank
Related
my email content below -
Hi example#gmail.com,
Please click on the link to confirm your registration, https://link here
here 2 links are there in email.-example#gmail.com,https:link here
i want to to automation of my activation email using robot -
here i tried to run the below code
Open Mailbox host=imap.gmail.com user=EXAMPLE#gmail.com password=PWD
${LATEST} = Wait For Email sender=SENDER#GMAIL.COM timeout=300
${parts} = Walk Multipart Email ${LATEST}
FOR ${i} IN RANGE ${parts}
Walk Multipart Email ${LATEST}
${content-type} = Get Multipart Content Type
Continue For Loop If '${content-type}' != 'text/html'
${payload} = Get Multipart Payload decode=True
Should Contain ${payload} EXAMPLE#gmail.com
after running the above code ,i got pass ,and in report ,i can see the email conetner shown above .
what i want is to fetch the activation link alone and click it .
which i failed many time .
please anyone help me to solve this.
My email functionality in the current application has a feature that users can use to send document URL's to themselves for future reference or forward the email to known person, which can be used to access the website without needing to login, but recently it has been noticed that the hyperlinks are getting appended by https://na01.safelinks.protection.outlook.com/ in the outlook email and its breaking the scope of the functionality in Chrome and Mozilla when user copy paste's the URL and try to use the hyperlink,It works only fine with IE browser. If I use the email feature and send it to lets say gmail account, the links are intact and works fine when an user clicks the link and it opens in chrome or mozilla. Please suggest how to make this work in outlook as that is the most common email editor that the end users are going to use.
I also had this problem. I don't know how to disable the ATP / Safe Link feature - however, I notice that sending the email as HTML and not plain text will preserve the appearance of the hypertext (even though Outlook still changes the href attribute).
I'm using PHP native email.
First, I change the links - e.g.
$email_body = "<p>" . $message_text . "</p>";
$email_body .= "www.example.com";
Second, I set the headers - e.g.
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; format=flowed; charset=\"utf-8\"; reply-type=original\r\n";
$headers .= "From: =?utf-8?b?" . base64_encode( $from_name ) . "?= <" . $from_a . ">\r\n";
$headers .= "Reply-To: =?utf-8?b?" . base64_encode( $name ) . "?= <" . $email_address . ">\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();
Third, I call native PHP mail();
The final result looks like a readable email (even though Outlook still changes href attributes).
For some, it is probably bit of an effort to convert emails from plain text to HTML - however, the benefit is that you have something more consistent looking across most email clients.
I'm trying to attach (not embed) an image file to an email being sent by ASP-Classic CDOSYS from my website. All the documentation says it's simple. Just use AddAttachment.
. . . . partial code . . .
With objMail
.AddAttachment "E:\xxx.com\files\image\photos\members\me.jpg"
.Update
End With
When the email arrives the file shows up with the email as an attachment, "me.jpg", but the path apparently gets lost during the Add because the attached file size is only a few bytes.
This method works fine for files such as a PDF, Word, or Excel file but not for images.
Any ideas?
yos-social-objc-master
I have also the problem with yos-social-objc-master project i found in github. after login with yahoo credential. I always got a page and a code xxxx with below lines
"To complete sharing of yahoo! info with xxxx, enter code xxxx into xxxx"
So, I am not getting that where I should enter this code? And how will it redirect to my application.
So that I can get contact list. I have done R&D on it. but didnt get any appropriate solution. Please help me out,how can i resolve this issue.
I have found the solution though with a little overheads.
Steps are: 1> Create a PHP script in you own server (say named, YRedirect.php).
2> Pest the following code in it-
<?php
$query = $_SERVER['QUERY_STRING'];
header("Location: YOUR_APP_ID_OR_BUNDLE_ID://oauth-response?" . $query);
?>
3> Add an URL Scheme in your info.plist file with the YOUR_APP_ID_OR_BUNDLE_ID.
That's it and you are DONE with the authentication problem.
And then use YQL to fetch contacts.
I can't determine the best way to debug my Facebook Payments Callback PHP file. The script isn't requested on the client side, so I'm not sure how to pass any "authentic" values to the script to run it locally. The topic doesn't seem to be covered in any of the Facebook documentation, nor was I able to find it on Google (with the exception of this previously asked question, which was seeking to debug the script with no internet connection at all), so hopefully the answer is just that obvious and simple. So far my only two 'solutions' have been to make the script output a text file containing any debug output, or blindly hack away at the code until the vague client-side API errors go away.
There is another option. Mail the output to yourself. I find it more convenient than reading a text file.
ob_start();
//the contents of your file
$output = ob_get_clean();
mail(
'youremail#email.com',
'fb_payments',
$output,
'From: noreply#misite.com' . "\r\n".'X-Mailer: PHP/' . phpversion()
);
echo $output;
Additionally, you can also capture the $_POST information you get from Facebook and send it it to the file through a form/javascript, locally. Then you don't have to have Facebook ping it, and you can see the errors in your browser.