} if (!$found && !$mesg) { $mesg = $langs->trans("ErrorBadParameters"); } if ($mesg) { print '<tr><td align="center" colspan="2"><br><div class="warning">' . $mesg . '</div></td></tr>' . "\n"; } print '</table>' . "\n"; print "\n"; if ($found && !$error) { if (empty($conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY)) { $conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY = 'integral'; } if ($conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY == 'integral') { print '<br><input class="button" type="submit" name="dopayment" value="' . $langs->trans("PaypalOrCBDoPayment") . '">'; } if ($conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY == 'paypalonly') { print '<br><input class="button" type="submit" name="dopayment" value="' . $langs->trans("PaypalDoPayment") . '">'; } } else { dol_print_error_email(); } print '</td></tr>' . "\n"; print '</table>' . "\n"; print '</form>' . "\n"; print '</center>' . "\n"; print '<br>'; html_print_paypal_footer($mysoc, $langs); $db->close(); llxFooterPaypal('$Date: 2011/07/31 23:23:20 $ - $Revision: 1.26 $');
print '<input type="hidden" name="desc" value="' . $langs->trans("PaymentSubscription") . '">' . "\n"; } if (!$found && !$mesg) { $mesg = $langs->trans("ErrorBadParameters"); } if ($mesg) { print '<tr><td align="center" colspan="2"><br><div class="warning">' . $mesg . '</div></td></tr>' . "\n"; } print '</table>' . "\n"; print "\n"; if ($found && !$error) { if (empty($conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY)) { $conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY = 'integral'; } if ($conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY == 'integral') { print '<br><input class="button" type="submit" name="dopayment" value="' . $langs->trans("PaypalOrCBDoPayment") . '">'; } if ($conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY == 'paypalonly') { print '<br><input class="button" type="submit" name="dopayment" value="' . $langs->trans("PaypalDoPayment") . '">'; } } else { dol_print_error_email('ERRORNEWPAYMENTPAYPAL'); } print '</td></tr>' . "\n"; print '</table>' . "\n"; print '</form>' . "\n"; print '</center>' . "\n"; print '<br>'; html_print_paypal_footer($mysoc, $langs); llxFooterPaypal(); $db->close();
/* * View */ dol_syslog("Callback url when a PayPal payment was canceled. query_string=".$_SERVER["QUERY_STRING"]); llxHeaderPaypal($langs->trans("PaymentForm")); // Show ko message print '<span id="dolpaymentspan"></span>'."\n"; print '<div id="dolpaymentdiv" align="center">'."\n"; print $langs->trans("YourPaymentHasNotBeenRecorded")."<br>"; $PAYPALTOKEN=GETPOST('TOKEN'); if (empty($PAYPALTOKEN)) $PAYPALTOKEN=GETPOST('token'); $PAYPALFULLTAG=GETPOST('FULLTAG'); if (empty($PAYPALFULLTAG)) $PAYPALFULLTAG=GETPOST('fulltag'); if (! empty($conf->global->PAYPAL_MESSAGE_KO)) print $conf->global->PAYPAL_MESSAGE_KO; print "\n</div>\n"; html_print_paypal_footer($mysoc,$langs); $db->close(); llxFooterPaypal('$Date: 2011/08/08 16:00:19 $ - $Revision: 1.8 $'); ?>