TCLink(3pm)

πŸ“¦
version 1.03 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

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 swapped card_number and expiration for account_number and routing_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