Subject: | Business::OnlinePayment standardization |
For consistency with other B:OP modules and ease of use in existing
applications which use B:OP (which typically have a way to pass extra
parameters to the new() constructor but not to the content() call),
please move any non-standard gateway authentication data from the
content() call to the new() constructor.
An example illustrates the changes more clearly:
$tx = new Business::OnlinePayment('Braintree',
merchant_id => 'your merchant id',
public_key => 'your public key',
private_key => 'your private key',
);
$tx->content(
amount => 100,
card_number => '4111 1111 1111 1111',
expiration => '1212'
);