transbank/transbank-sdk
Official PHP SDK for integrating Transbank payment services, including Webpay Plus, Oneclick Mall, Patpass, and full transaction flows. Provides REST/SOAP clients, configuration helpers, and ready-to-use classes for Laravel and PHP apps, simplifying payment initiation, confirmation, refunds, and sta...
MallBinInfo::queryBin method exposes card BIN information for cards already registered in Oneclick. This unlocks product decisions that depend on knowing a stored card’s brand/issuer/type at render time—e.g., displaying the right card logo in the saved-cards wallet, filtering which saved cards are eligible for a given flow, or making installment/UX decisions without asking the customer to re-enter card details.TransbankGateway behind a PaymentGateway interface) so the product can add other processors later without rewriting checkout logic.Consider adopting this package when:
Look elsewhere or add an abstraction layer when:
queryBin support is Oneclick-specific and should not become the product’s general card-metadata strategy.For executives: This is the official PHP SDK for Transbank, the dominant payment provider for Chilean e-commerce. Adopting it is a targeted market-entry enabler: it reduces time-to-first-transaction for Chile and avoids the cost and risk of building a payment client from scratch. Release 5.1.0 is a small, non-breaking addition—BIN lookup for cards already registered in Oneclick—which lets us show better card information to returning customers. The BSD-3-Clause license keeps legal friction low, and the current 2025 release cadence indicates active maintenance. The main caveat is unchanged: this is a regional, provider-specific tool—not a global payments strategy—so we should treat it as a market-specific building block behind our own payment abstraction.
For engineering: The SDK wraps Transbank APIs and removes low-level request/signature/protocol work, but it does not remove payment engineering. Version 5.1.0 adds only MallBinInfo::queryBin; existing methods are unchanged, so the upgrade is low-risk and can ride along with normal dependency maintenance. For the new method, treat BIN data as supplementary, cache it (it changes rarely), and never gate payment authorization on it. We still need secure credential and certificate handling, sandbox-to-production configuration, idempotency, retries, reconciliation, refunds, and webhook/status handling. Recommended approach: integrate it behind a PaymentGateway interface, keep Transbank-specific code—including BIN lookups—isolated, and add contract tests against the sandbox. Avoid leaking Transbank types into domain code so a second gateway can be added later.
For product: Prioritize this only if Chile is an active or near-term market. If it is, the package supports checkout, tokenized payments, refunds, and—as of 5.1.0—basic card metadata for saved Oneclick cards, which is a cheap win for saved-card UX and card-selection flows. The low star count is not a meaningful quality signal for an official regional SDK; private integrations rarely show up as dependents. The real product risks remain operational: failed payments, refund handling, reconciliation, and compliance—not the SDK itself.
How can I help you explore Laravel packages today?