Busine...menTech(3pm)

πŸ“¦
version 2.07 Β· 2 versions
  • 2.07 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 2.07 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Business::OnlinePayment::PaymenTech β€” it's the Chase Paymentech backend for Business::OnlinePayment, bestie. That's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

okay so here's the whole flow, no cap β€” you make the thing, you feed it the deets, you hit submit, and then you check if it ate πŸ’…

$trans = new Business::OnlinePayment('PaymenTech',
  merchant_id     => "000111222333",
  terminal_id     => "001",
  currency        => "USD", # CAD, MXN
);

$trans->content(
  login           => "login",
  password        => "password",
  type            => "CC",
  card_number     => "5500000000000004",
  expiration      => "0211",
  address         => "123 Anystreet",
  city            => "Sacramento",
  zip             => "95824",
  action          => "Normal Authorization",
  amount          => "24.99",
);

$trans->submit;
if($trans->is_approved) {
  print "Approved: ".$trans->authorization;
} else {
  print "Failed: ".$trans->error_message;
}

like, constructor first β€” merchant_id, terminal_id and currency go in right there, and psst, currency can be "USD", "CAD" or "MXN" (the comment says so, iykyk). πŸ¦‹

then content gets the actual transaction tea: login, password, type, card_number, expiration, address, city, zip, action, amount. all of it. don't skip any. ✨

then submit. then the vibe check: if is_approved is true you print "Approved: " plus $trans->authorization, and if not you print "Failed: " plus $trans->error_message. iconic. πŸ‘‘


🌸 NOTES 🌸

not me having to deliver the sad news… 😭 Electronic check processing and recurring billing are not yet supported. fr fr. not yet. that's just how it is right now, bestie. πŸ’€


πŸ’œ AUTHOR πŸ’œ

Mark Wells, mark@freeside.biz. king behavior, honestly. 🫢


⭐ SEE ALSO ⭐

go read those too, they're the supporting cast. 🌈


and that's the whole page, bestie!! πŸ’– this one's from the User Contributed Perl Documentation, running on perl v5.34.0, dated 2022-06-30 β€” yeah she's a lil vintage but she still slays. bye ily, go process some payments responsibly πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from