TCLink(3pm)
π³ TCLink β the manual page, but make it a group chat
okay bestie, so you know that Perl module TCLink from the User Contributed Perl Documentation section? The one that's technically named TCLink(3pm)? Yeah. That one. Sit down, grab a strawberry π, we're doing payments.
β¨ NAME β¨
Business::OnlinePayment::TCLink β it's the TrustCommerce backend for Business::OnlinePayment. That's the whole vibe. That's the name. Slay. π
πΈ SYNOPSIS πΈ
Here's the whole thing in action, no cap, copy it exactly:
use Business::OnlinePayment;
my $tx = new Business::OnlinePayment("TCLink");
$tx->content(
type => 'VISA',
login => '99999',
password => '',
action => 'Normal Authorization',
amount => '49.95',
first_name => 'Dan',
last_name => 'Helfman',
address => '123 Anystreet',
city => 'Anywhere',
state => 'UT',
zip => '84058',
card_number => '4111111111111111',
expiration => '09/05',
);
$tx->submit();
if($tx->is_success()) {
print "Card processed successfully: ".$tx->authorization."\n";
} else {
print "Card was rejected: ".$tx->error_message."\n";
}
Build the object, stuff all the content in, submit() it, then check is_success(). If it hit, you get the authorization. If it flopped, you get the error_message. Main character energy either way. π
π¦ SUPPORTED TRANSACTION TYPES π¦
π Visa, MasterCard, American Express, Discover, Novus, Diner's Club, Carte Blanche, Japan Card, Enroute, CC
Content required: type, login, password, action, amount, first_name, last_name, card_number, expiration.
that's a whole roster of cards, bestie. ten of them. and yes, every single one of those content fields is required, no skipping.
π Check
Content required: type, login, password, action, amount, first_name, last_name, account_number, routing_code.
see how it swappedcard_numberandexpirationforaccount_numberandrouting_code? it's giving bank account instead of plastic. iconic. π§
π DESCRIPTION π
For detailed information see Business::OnlinePayment.
that's it. that's the description. the docs live next door, go knock. πͺ
β NOTE β
okay this part actually matters so listen up, fr fr:
To settle an authorization-only transaction (where you set action to 'Authorization Only'), submit the transaction id code in the field "order_number" with the action set to "Post Authorization".
You can get the transaction id from the authorization by calling the order_number method on the object returned from the authorization.
You must also submit the amount field with a value less than or equal to the amount specified in the original authorization.
π¨ not me being dramatic but: if your amount is bigger than the original authorization, that is not it. keep it less than or equal, periodt.
π COMPATIBILITY π
This module relies on Net::TCLink for interacting with the TrustCommerce payment engine. See http://www.trustcommerce.com/tclink.html for details.
π AUTHOR π
Dan Helfman <dan@trustcommerce.com>
Derived from code by Jason Kohles and Ivan Kohler.
shoutout to the whole lineage, we love a collab. π«Ά
π₯ SEE ALSO π₯
perl(1).Business::OnlinePayment.Net::TCLink.
and that's the page, bestie. perl v5.26.2, dated 2018-08-19 β yeah she's a vintage queen but she still eats πβ¨ππ¦πΈ
laterrr π
π¦ where this page comes from
- debian bookworm: libbusiness-onlinepayment-tclink-perl 1.03-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbusiness-onlinepayment-tclink-perl 1.03-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libbusiness-onlinepayment-tclink-perl 1.03-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbusiness-onlinepayment-tclink-perl 1.03-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms