diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-02-25 09:14:26 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-02-25 09:14:26 -0600 |
commit | 05dee44cdb4e93df6963ae396f916705c4086f86 (patch) | |
tree | b36b08ab2dc85027be2800e225498ae0c78f9f2e /FS | |
parent | 82947aebf5bd25d69cf3da8b658b22df76629c9b (diff) |
RT#30600: Auto Apply for CC payments
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_main/Billing_Realtime.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm index 747f4af5d..e2a02674e 100644 --- a/FS/FS/cust_main/Billing_Realtime.pm +++ b/FS/FS/cust_main/Billing_Realtime.pm @@ -154,7 +154,9 @@ specified invoice. If the customer has exactly one open invoice, that invoice number will be assumed. If you don't specify an I<invnum> you might want to call the B<apply_payments> method or set the I<apply> option. -I<apply> can be set to true to apply a resulting payment. +I<apply> can be set to true to run B<apply_payments_and_credits> on success. + +I<no_auto_apply> can be set to true to prevent resulting payment from being automatically applied. I<quiet> can be set true to surpress email decline notices. @@ -903,7 +905,7 @@ sub _realtime_bop_result { 'processor' => $payment_gateway->gateway_module, 'auth' => $transaction->authorization, 'order_number' => $order_number || '', - + 'no_auto_apply' => $options{'no_auto_apply'} ? 'Y' : '', } ); #doesn't hurt to know, even though the dup check is in cust_pay_pending now $cust_pay->payunique( $options{payunique} ) |