Payment Method Service Overview
Overview
The Payment Method Service enables you to securely store and manage customer payment methods at payment processors. By tokenizing payment details, you can offer one-click checkout experiences and recurring billing without handling sensitive card data or maintaining PCI compliance overhead.
Business Use Cases:
One-click checkout - Returning customers pay with saved payment methods without re-entering card details
Subscription billing - Store payment methods for automated recurring charges
Mobile wallet integration - Securely vault wallet tokens for future payments
Fraud reduction - Tokenized payments reduce fraud liability and improve authorization rates
The service creates secure tokens at the underlying payment processor (Stripe, Adyen, etc.), allowing you to reference payment methods in future transactions without storing sensitive data in your systems.
Operations
Store payment method securely at the processor. Replaces raw card details with token for one-click payments and recurring billing.
First-time checkout, saving card for later, subscription setup
Common Patterns
One-Click Checkout for Returning Customers
Save payment methods during first purchase to enable faster checkout for returning customers.
Flow Explanation:
Tokenize payment method - When a customer enters their payment details for the first time, call the
TokenizeRPC. The payment processor securely stores the card details and returns apayment_method_token(e.g., Stripe'spm_xxx). Store this token in your customer database for future use.Authorize with token - For the immediate purchase, call the Payment Service's
AuthorizeRPC with thepayment_method_token. This reserves funds on the customer's payment method. The response includes aconnector_transaction_idand statusAUTHORIZED.Future purchases - For subsequent purchases, retrieve the stored
payment_method_tokenfrom your database and call the Payment Service'sAuthorizeRPC with it. The customer does not need to re-enter their payment details, enabling a one-click checkout experience.
Benefits:
Faster checkout for returning customers (fewer steps, reduced friction)
Reduced cart abandonment rates
No PCI compliance overhead for stored payment data
Consistent customer experience across devices
Subscription Setup with Stored Payment Method
Combine Customer Service and Payment Method Service for seamless subscription onboarding.
Flow Explanation:
Create customer - First, call the Customer Service's
CreateRPC to create a customer profile at the payment processor. This returns aconnector_customer_idthat links all payment methods and transactions to the customer.Tokenize payment method - Call the
TokenizeRPC with the customer's payment details and theconnector_customer_id. The payment processor securely stores the payment method and returns apayment_method_tokenlinked to the customer.Setup recurring mandate - Call the Payment Service's
SetupRecurringRPC to create a payment mandate. This obtains customer consent for future recurring charges and returns amandate_reference.Authorize initial payment - Call the Payment Service's
AuthorizeRPC with both thepayment_method_tokenandmandate_referenceto charge the initial subscription fee.Capture payment - Call the Payment Service's
CaptureRPC to finalize the charge and transfer funds.
Benefits:
Seamless subscription signup flow
Stored payment credentials for all future billing
Mandate-based recurring charges without customer interaction
Unified customer profile across all payments
Next Steps
Customer Service - Create customer profiles for payment method association
Payment Service - Process payments with tokenized methods
Recurring Payment Service - Set up recurring billing with stored payment methods
Last updated
Was this helpful?

