Hello
I'm experimenting with ChronoForms J1.5 and have three questions:
1. How do I fill in all fields of the form, if the user already registered?
2. There is another way to pay with paypal without having to enter information for credit card?
3. I do not understand the steps I take to validate the license. Not meaning "Sale ID" on page http://www.chronoengine.com/subscriptions/validate-purchase.html. How much does it cost the validation?
I'm sorry, my English is a translator (google) :mrgreen:
Thank you very much
I'm experimenting with ChronoForms J1.5 and have three questions:
1. How do I fill in all fields of the form, if the user already registered?
2. There is another way to pay with paypal without having to enter information for credit card?
3. I do not understand the steps I take to validate the license. Not meaning "Sale ID" on page http://www.chronoengine.com/subscriptions/validate-purchase.html. How much does it cost the validation?
I'm sorry, my English is a translator (google) :mrgreen:
Thank you very much
Hi macbomb,
#1- this question was answered too many times before, please search the forums because it involves few pieces of code or using the profile plugin!
#2- yes, the redirect plugin, please search the forums too!🙂
#3- you need to purchase first to get a sale id (order number), all details here:
http://www.chronoengine.com/subscriptions.html
Regards,
Max
#1- this question was answered too many times before, please search the forums because it involves few pieces of code or using the profile plugin!
#2- yes, the redirect plugin, please search the forums too!🙂
#3- you need to purchase first to get a sale id (order number), all details here:
http://www.chronoengine.com/subscriptions.html
Regards,
Max
Thanks,
I do not speak English. I have trouble searching the forum.😶
I introduce this code:
in the box "On Submit code - before sending email:"
but can not get any result.
do not know if this code is executed.
where should I put it to run?
thanks!
I do not speak English. I have trouble searching the forum.😶
I introduce this code:
<?php
$req = 'cmd=_notify-validate';
foreach ($_POST as $key => $value) {
$value = urlencode(stripslashes($value));
$req .= "&$key=$value";
}
// 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($req) . "\r\n\r\n";
$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);
// assign posted variables to local variables
$item_name = $_POST['item_name'];
$item_number = $_POST['item_number'];
$payment_status = $_POST['payment_status'];
$payment_amount = $_POST['mc_gross'];
$payment_currency = $_POST['mc_currency'];
$txn_id = $_POST['txn_id'];
$receiver_email = $_POST['receiver_email'];
$payer_email = $_POST['payer_email'];
if (!$fp) {
// HTTP ERROR
} else {
fputs ($fp, $header . $req);
while (!feof($fp)) {
$res = fgets ($fp, 1024);
if (strcmp ($res, "VERIFIED") == 0) {
// check the payment_status is Completed
// check that txn_id has not been previously processed
// check that receiver_email is your Primary PayPal email
// check that payment_amount/payment_currency are correct
// process payment
}
else if (strcmp ($res, "INVALID") == 0) {
// log for manual investigation
}
}
fclose ($fp);
}
?>
in the box "On Submit code - before sending email:"
but can not get any result.
do not know if this code is executed.
where should I put it to run?
thanks!
Hi macbomb,
from where did you get this code ? are you sure its correct ? I think that the user must go to the paypal web site and enter his email and password manually!
for #1 search for "load logged in user details", and for #2 search for "paypal redirect"
Regards
Max
from where did you get this code ? are you sure its correct ? I think that the user must go to the paypal web site and enter his email and password manually!
for #1 search for "load logged in user details", and for #2 search for "paypal redirect"
Regards
Max
This topic is locked and no more replies can be posted.