Revision history for Perl extension Business::OnlinePayment.
3.04 unreleased
- - Doc: Partial authorizations
+ - Partial authorizations
- Doc: Moo is a-okay for module authors
- Doc: update URLs for new domain
response_page
avs_code
cvv2_response
+ partial_auth
+ partial_auth_amount
);
__PACKAGE__->build_subs(@methods);
=over 4
+=item partial_auth
+
+Set true to accept a partial authorization. If this flag is not set, a partial
+authorization will be immediately reversed or voided.
+
=item description
A description of the transaction (used by some processors to send
Note that not all processor modules support this, and that if supported,
it may not be set for all declines.
+=head2 partial_auth_amount()
+
+Amount of the partial authorization, if the processor supports them and the
+partial_auth flag was passed to indicate they should be processed.
+
=head2 authorization()
If the transaction has been submitted and accepted, this function will
'supported_types' => [ qw( CC ECHECK ) ],
'token_support' => 0, #card storage/tokenization support
'test_transaction' => 0, #set true if ->test_transaction(1) works
+ 'partial_auth' => 1, #can gateway partial auth (new in 3.04)
'supported_actions' => [
'Normal Authorization',
'Authorization Only',
return is_success 0.
+ If this transaction flag is set, the application can handle a partial
authorization. Make sure the flag to enable them is passed to the
- gateway, if necessary. When a partial authorization is received, the
- amount must be returned as "partial_auth_amount":
+ gateway, if necessary. When a partial authorization is received, return
+ is_success 1, and the amount as "partial_auth_amount":
$self->partial_auth_amount( $partial_amount );
For normal full authorizations, "partial_auth_amount" must not be set.