More logs
This commit is contained in:
parent
100edffdaf
commit
26b8e8d2bf
@ -156,7 +156,7 @@ class Subscription extends CommonObject
|
|||||||
} else {
|
} else {
|
||||||
$type = $this->fk_type;
|
$type = $this->fk_type;
|
||||||
}
|
}
|
||||||
$sql .= " VALUES (".$this->fk_adherent.", '".$type."', '".$this->db->idate($now)."',";
|
$sql .= " VALUES (".$this->fk_adherent.", '".$this->db->escape($type)."', '".$this->db->idate($now)."',";
|
||||||
$sql .= " '".$this->db->idate($this->dateh)."',";
|
$sql .= " '".$this->db->idate($this->dateh)."',";
|
||||||
$sql .= " '".$this->db->idate($this->datef)."',";
|
$sql .= " '".$this->db->idate($this->datef)."',";
|
||||||
$sql .= " ".$this->amount.",";
|
$sql .= " ".$this->amount.",";
|
||||||
|
|||||||
@ -554,9 +554,10 @@ class InterfaceActionsAuto extends DolibarrTriggers
|
|||||||
|
|
||||||
$member = $this->context['member'];
|
$member = $this->context['member'];
|
||||||
if (!is_object($member)) { // This should not happen
|
if (!is_object($member)) { // This should not happen
|
||||||
|
dol_syslog("Execute a trigger MEMBER_SUBSCRIPTION_CREATE with context key 'member' not an object");
|
||||||
include_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
|
||||||
$member = new Adherent($this->db);
|
$member = new Adherent($this->db);
|
||||||
$member->fetch($this->fk_adherent);
|
$member->fetch($object->fk_adherent);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($object->actionmsg2)) $object->actionmsg2 = $langs->transnoentities("MemberSubscriptionAddedInDolibarr", $object->id, $member->getFullName($langs));
|
if (empty($object->actionmsg2)) $object->actionmsg2 = $langs->transnoentities("MemberSubscriptionAddedInDolibarr", $object->id, $member->getFullName($langs));
|
||||||
|
|||||||
@ -390,7 +390,7 @@ if ($action == 'dopayment')
|
|||||||
|
|
||||||
// Called when choosing Stripe mode.
|
// Called when choosing Stripe mode.
|
||||||
// When using the Charge API architecture, this code is called after clicking the 'dopayment' with the Charge API architecture.
|
// When using the Charge API architecture, this code is called after clicking the 'dopayment' with the Charge API architecture.
|
||||||
// When using the PaymentIntent API architecture, the Stripe customer is already created when creating PaymentItent when showing payment page and the payment is already ok.
|
// When using the PaymentIntent API architecture, the Stripe customer is already created when creating PaymentIntent when showing payment page and the payment is already ok.
|
||||||
if ($action == 'charge' && !empty($conf->stripe->enabled))
|
if ($action == 'charge' && !empty($conf->stripe->enabled))
|
||||||
{
|
{
|
||||||
$amountstripe = $amount;
|
$amountstripe = $amount;
|
||||||
@ -400,6 +400,7 @@ if ($action == 'charge' && !empty($conf->stripe->enabled))
|
|||||||
$arrayzerounitcurrency = array('BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'VND', 'VUV', 'XAF', 'XOF', 'XPF');
|
$arrayzerounitcurrency = array('BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'VND', 'VUV', 'XAF', 'XOF', 'XPF');
|
||||||
if (!in_array($currency, $arrayzerounitcurrency)) $amountstripe = $amountstripe * 100;
|
if (!in_array($currency, $arrayzerounitcurrency)) $amountstripe = $amountstripe * 100;
|
||||||
|
|
||||||
|
dol_syslog("--- newpayment.php Execute action = ".$action, LOG_DEBUG, 0, '_stripe');
|
||||||
dol_syslog("POST keys : ".join(',', array_keys($_POST)), LOG_DEBUG, 0, '_stripe');
|
dol_syslog("POST keys : ".join(',', array_keys($_POST)), LOG_DEBUG, 0, '_stripe');
|
||||||
dol_syslog("POST values: ".join(',', $_POST), LOG_DEBUG, 0, '_stripe');
|
dol_syslog("POST values: ".join(',', $_POST), LOG_DEBUG, 0, '_stripe');
|
||||||
|
|
||||||
@ -419,7 +420,7 @@ if ($action == 'charge' && !empty($conf->stripe->enabled))
|
|||||||
$error = 0;
|
$error = 0;
|
||||||
$errormessage = '';
|
$errormessage = '';
|
||||||
|
|
||||||
// When using the Charge API architecture
|
// When using the old Charge API architecture
|
||||||
if (empty($conf->global->STRIPE_USE_INTENT_WITH_AUTOMATIC_CONFIRMATION))
|
if (empty($conf->global->STRIPE_USE_INTENT_WITH_AUTOMATIC_CONFIRMATION))
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
@ -695,7 +696,7 @@ if ($action == 'charge' && !empty($conf->stripe->enabled))
|
|||||||
dol_syslog("onlinetoken=".$_SESSION["onlinetoken"]." FinalPaymentAmt=".$_SESSION["FinalPaymentAmt"]." currencyCodeType=".$_SESSION["currencyCodeType"]." payerID=".$_SESSION['payerID']." TRANSACTIONID=".$_SESSION['TRANSACTIONID'], LOG_DEBUG, 0, '_stripe');
|
dol_syslog("onlinetoken=".$_SESSION["onlinetoken"]." FinalPaymentAmt=".$_SESSION["FinalPaymentAmt"]." currencyCodeType=".$_SESSION["currencyCodeType"]." payerID=".$_SESSION['payerID']." TRANSACTIONID=".$_SESSION['TRANSACTIONID'], LOG_DEBUG, 0, '_stripe');
|
||||||
dol_syslog("FULLTAG=".$FULLTAG, LOG_DEBUG, 0, '_stripe');
|
dol_syslog("FULLTAG=".$FULLTAG, LOG_DEBUG, 0, '_stripe');
|
||||||
dol_syslog("error=".$error." errormessage=".$errormessage, LOG_DEBUG, 0, '_stripe');
|
dol_syslog("error=".$error." errormessage=".$errormessage, LOG_DEBUG, 0, '_stripe');
|
||||||
dol_syslog("Now call the redirect to paymentok or paymentko", LOG_DEBUG, 0, '_stripe');
|
dol_syslog("Now call the redirect to paymentok or paymentko, URL = ".($error ? $urlko : $urlok), LOG_DEBUG, 0, '_stripe');
|
||||||
|
|
||||||
if ($error)
|
if ($error)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user