can't you use an abstraction layer? if you look in the code section of phpbuilder, there will be lots of database abstraction layers - take a look at these for pointers. theory goes like this - you create a variable which states which type of merchant account (or db) you are using, and then a set of functions which are called regardless of what merchant (or db) is used, check which is used and then perform the correct code for that merchant.
so i would have a variable like this
$merchant_type = "paypal";
and a function like this
function make payment (ccnumber, account, etc...) {
if ($merchant_type == "credite mutuel"){
execute the make payment code for credite mutuel
};
if ($merchant_type == "paypal"){
execute the make payment code for paypal
}
return $status;
}
not quite sure on my syntax, but you get the idea
ads