mambomouth
02-25-2007, 07:19 PM
Hello All I have question Im trying to add an affiliate program to my VB forum subscriptions.
I have Idea a few files but I think this the one to do it in.
The Affiliate software needs two variables.
1. $id_transaction // transaction id
2. $amount // the amount of the sale
VB 3.6.4 version
Payment_gateway.php
Around Line 81
// if ($apiobj->verify_payment())
My question is would these two VB calls work to give my affiliate program variables the proper
values per transaction ?
$apiobj->transaction_id
$apiobj->paymentinfo['amount']
// Affiliate Variables assigned
1. $idaff_transaction = $apiobj->transaction_id;
2. $aff_amount = $apiobj->paymentinfo['amount'];
Then inside the if condition in line number 105
// if ($apiobj->type == 1){
/* I would add the affiliate link code * /
}
And for returned funds line number 120
// if ($apiobj->type == 2){
/* I would add the affiliate link code for refund updates * /
}
If someone could please verify it would make my day.
Cheers and thank you in advance.
Brian
I have Idea a few files but I think this the one to do it in.
The Affiliate software needs two variables.
1. $id_transaction // transaction id
2. $amount // the amount of the sale
VB 3.6.4 version
Payment_gateway.php
Around Line 81
// if ($apiobj->verify_payment())
My question is would these two VB calls work to give my affiliate program variables the proper
values per transaction ?
$apiobj->transaction_id
$apiobj->paymentinfo['amount']
// Affiliate Variables assigned
1. $idaff_transaction = $apiobj->transaction_id;
2. $aff_amount = $apiobj->paymentinfo['amount'];
Then inside the if condition in line number 105
// if ($apiobj->type == 1){
/* I would add the affiliate link code * /
}
And for returned funds line number 120
// if ($apiobj->type == 2){
/* I would add the affiliate link code for refund updates * /
}
If someone could please verify it would make my day.
Cheers and thank you in advance.
Brian