What is a Payment Method and Why Store It?
A Payment Method in Revolv3 is a securely stored reference to a customer’s payment credential (like a credit card or bank account). Instead of asking customers to enter their card details every time they make a purchase, you can store their payment information once and reuse it. Why is this useful?- Better customer experience: Customers don’t have to re-enter their card details every time
- Faster checkout: One-click purchases for returning customers
- Security: You never store full card numbers in your database (more on this below)
- Recurring billing: Essential for subscriptions and recurring payments
Understanding Tokenization
When you store a payment method, Revolv3 uses a process called tokenization. Here’s how it works:- You send the full card details to Revolv3 (card number, expiration, CVV)
- Revolv3 securely stores the card information in a PCI-compliant vault
- Revolv3 returns a token (called a
paymentMethodId) that represents the card - You store only the token in your database - never the actual card number
- Your database never contains sensitive card data, reducing your security risk
- If your database is compromised, attackers only get tokens (which are useless without Revolv3)
- You don’t need to be PCI-compliant for storing tokens (Revolv3 handles that)
- Card details are encrypted and stored in secure, compliant systems
Two Ways to Create Payment Methods
You have two options for creating payment methods:- Create a Payment Method separately before processing a payment (useful if you want to verify the card first or collect payment info ahead of time)
- Automatically create one when processing a payment (Revolv3 will create and return a
paymentMethodIdin the response)
Creating a Payment Method
If you want to create a payment method before processing a payment (for example, to verify the card or set up a subscription), you can create it separately.API Endpoint
Sample API Request
ExpirationDate uses MMYY format (e.g., 1025 means October 2025), SecurityCode is the CVV/CVC, and MerchantPaymentMethodRefId is your own internal reference ID.
Understanding the Request Fields
Security Best Practice: Once you receive the paymentMethodId in the response, delete the full card number and CVV from your application’s memory. You’ll never need them again - just use the token.
Response When Creating a Payment Method
When you successfully create a payment method, Revolv3 returns apaymentMethodId that you can use for all future transactions with this customer.
paymentMethodId is the token you’ll use for future charges, binNumber is the first 6 digits of the card (bank identifier), and paymentLast4Digit is safe to display to customers.
Understanding the Response
Note: Notice that the response doesn’t include the full card number or CVV. Revolv3 never returns sensitive data - only the token and safe-to-display information like the last 4 digits.
Reusing a Stored Payment Method
Once you have apaymentMethodId, you can use it to charge the customer without ever handling their card details again. This is much more secure and provides a better user experience.
API Endpoint
{paymentMethodId} with the ID you received when creating the payment method (e.g., 16336).
Sample API Request
processingType controls how networks classify the transaction (recurring vs installment), CustomerId can link to an existing customer record, MerchantInvoiceRefId is your order ID, and Amount.value is the charge amount.
Understanding the Request Fields
Payment Response
When you successfully charge a stored payment method, you’ll get a response similar to when you charge a card directly:paymentMethodId confirms which stored payment method was used, and paymentMethodTypeId indicates the type (1 = credit card, 2 = ACH, 3 = Google Pay, 4 = Apple Pay).
Understanding the Response
Account Updater: Keeping Cards Current
Some payment processors support Account Updater, a service that automatically updates expired or replaced cards in your stored payment methods. For example, if a customer gets a new card number or their card expires, Account Updater can update your records so recurring payments don’t fail. When Account Updater updates a card, you’ll see additional fields in the response:accountUpdateMessage indicates what the account updater changed (for example, a new expiry date), and accountUpdateDateTime records when it was updated.
Real-World Use Cases
E-commerce with saved cards: When a customer checks out, offer to “save this card for faster checkout.” Store thepaymentMethodId and show “Pay with card ending in 1111” on their next visit.
Subscription services: When a customer signs up for a monthly subscription, create a payment method and use it for all recurring charges. Account Updater will keep the card current even if it expires.
One-click purchases: Store payment methods for returning customers so they can complete purchases with a single click instead of entering card details every time.
Guest checkout with optional save: Allow customers to checkout as guests, but offer to save their payment method if they create an account later.
Summary
Security Reminders
- Do: Store
paymentMethodIdtokens in your database - Do: Display the last 4 digits to customers for confirmation
- Do: Delete card numbers and CVV codes from memory after tokenization
- Don’t: Store full card numbers or CVV codes in your database
- Don’t: Log card numbers or CVV codes
- Don’t: Send card details in URLs or query parameters
Next Steps
- ACH Direct Debit — Learn how to store and charge bank accounts
- Subscriptions — Use payment methods for recurring billing
- Account Updater — Understand how cards are automatically updated

