Credit Cards
Learn how Merchants can process Credit Card payments.
Summary
The credit card payment method enables Merchants to process e-commerce credit card transactions. This payment method is preferred for its convenience and speed, making it a vital component for e-commerce and online businesses.
Credit Card Capabilities
| Topic | Support |
|---|---|
| Integration Methods | PaymentFields Integration, Direct API Integration |
| Connections | Supported Connections |
| Countries | USA, Canada |
| Currencies | Any ISO-4217 3-character currency code supported by destination processor |
| Recurring | Supported via multi-use token |
| Transaction Types | Verify, Auth, Capture, Sale, Void, and Refund |
Credit Card Payment Flow
When a payer checks out, their card data is captured and tokenized by Preczn, and the resulting token is what your Platform uses to request transactions. Behind the scenes, Preczn resolves that token back to the underlying card data when it builds the request to your Connection (for example, Stripe). Understanding this exchange is important — see How Preczn exchanges your token for card data below.
The process typically involves the following steps:
- The payer enters their credit card details on a website during the checkout process.
- Preczn encrypts the entered data, creates a token (
tkn_...), and returns it to the Platform. The raw card data is retained in Preczn's PCI-DSS Level 1 token vault. - The Platform requests a Sale using the token.
- Preczn resolves the token to the associated card data in the vault and uses it to build the payment request it sends to the Connection.
- The Connection forwards the payment data to the card-issuing bank for verification and authorization.
- The issuing bank approves or denies the transaction based on the cardholder's available credit and account status.
- Upon authorization, the transaction is processed, funds are transferred from the cardholder's account to the Merchant's account, and the sale is completed.
- Both the Merchant and the buyer receive a confirmation of the transaction's outcome.
sequenceDiagram
autonumber
actor Payer
participant Platform as Your Platform
participant Preczn as Preczn<br/>(Token Vault)
participant Connection as Connection<br/>(e.g. Stripe)
participant Bank as Issuing Bank
Payer->>Platform: Enters card details at checkout
Platform->>Preczn: Card data via PaymentFields
Preczn->>Preczn: Encrypt & vault raw card data
Preczn-->>Platform: Return token (tkn_...)
Platform->>Preczn: Request Sale with token
Preczn->>Preczn: Resolve token to card data in vault
Preczn->>Connection: Send payment request built from card data
Connection->>Bank: Forward for authorization
Bank-->>Connection: Approve / Decline
Connection-->>Preczn: Transaction result
Preczn-->>Platform: Transaction result
Platform-->>Payer: Confirmation
How Preczn exchanges your token for card data
Your Platform never handles raw card numbers — you hold a Preczn token (tkn_...) and pass that token when you request a transaction. When Preczn forwards the transaction to your Connection, it resolves the token back to the underlying card data stored in the token vault and builds the processor request from that card data.
sequenceDiagram
participant Platform as Your Platform
box rgba(129, 90, 255, 0.16) Preczn
participant Preczn as Payment API
participant Vault as Token Vault
end
participant Connection as Connection<br/>(e.g. Stripe)
Platform->>Preczn: Sale request with token<br/>tkn_789fa789fs789fs
Preczn->>Vault: Look up tkn_789fa789fs789fs
Vault-->>Preczn: Card data<br/>number: 4321000000000012<br/>exp: 12/29 · cvv: 123
Preczn->>Connection: Sale request built from card data<br/>(number, exp, cvv)
ℹ️ The same exchange applies to other payment methods
This token-to-credentials exchange isn't specific to credit cards. For every payment method, your Platform holds a Preczn token and Preczn resolves it to the underlying payment credentials when it builds the processor request:
- ACH / bank accounts — resolved to the account and routing numbers.
- Apple Pay & Google Pay — resolved to the wallet's network token.
In each case Preczn sends the payment credentials to your processor — it never forwards the Preczn token itself.
Credit Card Testing
Use Preczn test cards to test your integration. These test cards work only against test Merchants and test Connections. A test transaction is automatically directed to the processor's sandbox environment.
Preczn Test Cards
InfoWhen using the test card values below, Preczn will automatically map these values to the appropriate test card utilized by your configured Connection.
It is important to note, some processors utilize unique triggers to simulate different test scenarios. Please see your Connection's page for details unique to your processor.
Approved Cards
| Card Type | Card Number |
|---|---|
| Visa | 4321000000000012 |
| Mastercard | 5100000000000016 |
| Amex | 370000000000002 |
| Discover | 6011000000000004 |
Decline Card
| Card Type | Card Nubmer | Decline Type |
|---|---|---|
| Visa | 4321000000000020 | Generic Decline |
Approved Debit Card
| Card Type | Card Number |
|---|---|
| Visa | 4000056655665556 |
Updated 10 days ago
