Update transaction.php
This commit is contained in:
parent
933f253c86
commit
d09b74abe5
@ -125,10 +125,10 @@ if (! $rowid) {
|
|||||||
{
|
{
|
||||||
//$charge = $txn;
|
//$charge = $txn;
|
||||||
//var_dump($txn);
|
//var_dump($txn);
|
||||||
|
|
||||||
// The metadata FULLTAG is defined by the online payment page
|
// The metadata FULLTAG is defined by the online payment page
|
||||||
/*$FULLTAG=$charge->metadata->FULLTAG;
|
/*$FULLTAG=$charge->metadata->FULLTAG;
|
||||||
|
|
||||||
// Save into $tmparray all metadata
|
// Save into $tmparray all metadata
|
||||||
$tmparray = dolExplodeIntoArray($FULLTAG,'.','=');
|
$tmparray = dolExplodeIntoArray($FULLTAG,'.','=');
|
||||||
// Load origin object according to metadata
|
// Load origin object according to metadata
|
||||||
@ -148,7 +148,7 @@ if (! $rowid) {
|
|||||||
{
|
{
|
||||||
$memberstatic->id = 0;
|
$memberstatic->id = 0;
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
$societestatic->fetch($charge->metadata->idcustomer);
|
$societestatic->fetch($charge->metadata->idcustomer);
|
||||||
$societestatic->id = $charge->metadata->idcustomer;
|
$societestatic->id = $charge->metadata->idcustomer;
|
||||||
$societestatic->lastname = $obj->lastname;
|
$societestatic->lastname = $obj->lastname;
|
||||||
@ -167,11 +167,11 @@ if (! $rowid) {
|
|||||||
if (preg_match('/po_/i', $txn->source)){
|
if (preg_match('/po_/i', $txn->source)){
|
||||||
$origin="payouts";
|
$origin="payouts";
|
||||||
} elseif (preg_match('/fee_/i', $txn->source)) {
|
} elseif (preg_match('/fee_/i', $txn->source)) {
|
||||||
$origin="connect/application_fees";
|
$origin="connect/application_fees";
|
||||||
} else {
|
} else {
|
||||||
$origin="payments";
|
$origin="payments";
|
||||||
}
|
}
|
||||||
|
|
||||||
$url='https://dashboard.stripe.com/'.$connect.'test/'.$origin.'/'.$txn->source;
|
$url='https://dashboard.stripe.com/'.$connect.'test/'.$origin.'/'.$txn->source;
|
||||||
if ($servicestatus)
|
if ($servicestatus)
|
||||||
{
|
{
|
||||||
@ -229,5 +229,6 @@ elseif ($txn->status=='failed')
|
|||||||
print '</form>';
|
print '</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// End of page
|
||||||
llxFooter();
|
llxFooter();
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user