chrissi_lisa
Forum Replies Created
-
Forum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingHi,
thank you – finally a found a soloution.
Best Regards
ChrissiForum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingHi,
ok, I found it and the paypal-listener.php starts now. But the problem is, the Session is away ? Why ?
Forum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingthank you and cancel page works now!
how can I manipulate the listener-script? I want to update the database, when the payment was successfull…
Forum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingI found out that is nessacary to define a listener-Skript an set the Listener-URL to the IPN options. I wrote this script, but even when the payment was successful there is no update:
<?php
/*global $theme;
get_header();*/
include (“wp-config.php”);
global $wpdb;//Build the data to post back to Paypal
$postback = ‘cmd=_notify-validate’;// go through each of the posted vars and add them to the postback variable
foreach ($_POST as $key => $value) {
$value = urlencode(stripslashes($value));
$postback .= “&$key=$value”;
}// build the header string to post back to PayPal system to validate
$header = “POST /cgi-bin/webscr HTTP/1.0\r\n”;
$header .= “Content-Type: application/x-www-form-urlencoded\r\n”;
$header .= “Content-Length: ” . strlen($postback) . “\r\n\r\n”;// Send to paypal or the sandbox depending on whether you’re live or developing
// comment out one of the following lines
//$fp = fsockopen (‘ssl://www.sandbox.paypal.com’, 443, $errno, $errstr, 30);//open the connection
$fp = fsockopen (‘ssl://www.paypal.com’, 443, $errno, $errstr, 30);
// or use port 443 for an SSL connection
//$fp = fsockopen (‘ssl://www.paypal.com’, 443, $errno, $errstr, 30);if (!$fp)
{// HTTP ERROR Failed to connect
//error handling or email here
}
else // if we’ve connected OK
{fputs ($fp, $header . $postback);//post the data back
while (!feof($fp))
{
$response = fgets ($fp, 1024);//It’s verified
if(strcmp($response,”VERIFIED”) == 0){// assign posted variables to local variables, apply urldecode to them all at this point as well, makes things simpler later
$payment_status = $_POST[‘payment_status’];//read the payment details and the account holderif($payment_status == ‘Completed’)
{
$unique_id = $_SESSION[‘unique_id’];$abfrage = “UPDATE eigene_angebote SET
bezahlt
= 1,bezahlt_am
= NOW()
WHEREunique_id
='”.$unique_id.”‘”;$result=$wpdb->get_results($abfrage, ARRAY_A);
}
else if($payment_status == ‘Denied’ || $payment_status == ‘Failed’ || $payment_status == ‘Refunded’ || $payment_status == ‘Reversed’ || $payment_status == ‘Voided’)
{}
else if($payment_status == ‘In-Progress’ || $payment_status == ‘Pending’ || $payment_status == ‘Processed’)
{
//Do something
}
else if($payment_status == ‘Canceled_Reversal’)
{
//Do something
}
}
else if (strcmp ($response, “INVALID”) == 0)
{
//the Paypal response is INVALID, not VERIFIED
}
} //end of while
fclose ($fp);
}
?>This is my lister:
global $theme;
include (“wp-config.php”);
get_header();if($posted[‘payment_status’]==’completed’){
$unique_id = $_SESSION[‘unique_id’];
$abfrage = “UPDATE eigene_angebote SET
bezahlt
= 1,bezahlt_am
= NOW()
WHEREunique_id
='”.$unique_id.”‘”;$result=$wpdb->get_results($abfrage, ARRAY_A);
}
But even if the payment was successful, there is no UPDATE … Where is the mistake?
BR
chrissi_lisaWhat do you mean with hook-functions?
Regularly I use the plugin “Quick Paypal Payments” here I can set a listenerskript in the IPN-option, f.e. “listener.php”. Here I have to use $posted[‘payment_status’] ?
Forum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingI have the solution: I overgive the ID in a SESSION
Forum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingIs there another way to check in the php-script wether the payment was successful?
Where can I find all shortcode-atributes?
Best regards,
ChrissiForum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingI think that could be interesing for other users too.
Forum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingok, now the sites are working.
I need to overgive an ID in the URL – is it possible to set the cancel und success-pages in the shortcode?
Forum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingI deleted the sandbox-option – now I get
“Things don’t appear to be working at the moment. Please try again later.”
The shortcode isnt within another <form>
I got the mail:
“Order Details:
Zahlung für:1 Angebot auf https://www.veranstaltungen-regional.de
Quantity: 1
50 €: 100.00”
What does this mean ? The email I typed in has no money on the account – so I had to get an error-message.
Forum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingHi aerin,
here is the page https://www.veranstaltungen-regional.de/angebot-eintragen.php
Thanks
- This reply was modified 7 years, 7 months ago by chrissi_lisa.
Forum: Plugins
In reply to: [Quick Paypal Payments] Cancel and Thank you pages not workingWhen I take the startpage its the same – no redirection…
My other questions are:
how can a user change the category of a existing listing ?
Why isn’t the preview picture preselected, in the editmode ?
Is it possible to place 1. step “edit information” and 2.step “edit photo” on the same site ?
BR, Chrissi
Hi,
thank you for the fast response.
When I add the search-widget in the dashboard to a sidebar, there are the options simple and advanced, I need the simple version as a shortcode.