Frequently Asked Questions
Copy page
Copy page as Markdown for LLMs
Open in ChatGPT
Ask questions about this page
Open in Claude
Ask questions about this page
This comprehensive FAQ addresses the most common questions and challenges developers encounter when integrating with Amazon Payment Services (APS). Each section provides practical solutions, step-by-step guidance, and direct links to relevant documentation.
Can't find what you're looking for? Check our Error Codes Guide or contact our support team at merchantsupport-ps@amazon.com
New to APS? Start with our Getting Started Guide for a smooth onboarding experience.
Quick Navigation
Error Troubleshooting
Common error messages and their solutions with step-by-step fixes.
Integration Help
Payment flows, status checking, and response handling guidance.
Apple Pay Issues
Certificate problems, testing, and configuration solutions.
Services & Features
Tokenization, installments, 3D Secure, and recurring payments.
Mobile Integration
SDK tokens, Direct Pay, and mobile app integration help.
Testing & Go-Live
Test cards, validation, and production deployment guidance.
Best Practices
Security, integration patterns, and troubleshooting guidance.
Error Messages and Troubleshooting
Error Message: "Invalid Merchant Identifier"
This error occurs when:
- Your merchant ID doesn't match what's in your APS account Security Settings
- You're sending a live transaction to the test environment (or vice versa)
How to fix:
- Log into your APS account → Security Settings
- Copy the exact Merchant Identifier shown there
- Use the correct environment URLs:
- Sandbox: URLs with "sb" prefix (e.g.,
sbpaymentservices.PayFort.com) - Production: URLs without "sb" prefix (e.g.,
paymentservices.PayFort.com)
- Sandbox: URLs with "sb" prefix (e.g.,
📖 See: Custom Integration Guide for correct URLs
Error Message: "Signature mismatch"
This means the security signature doesn't match what APS expects.
Common causes:
- Parameters not sorted alphabetically
- Wrong SHA phrase from Security Settings
- Including card details in tokenization signature (don't do this)
- Character encoding issues
How to fix:
- Check your SHA Request/Response phrases in Security Settings
- Ensure parameters are sorted A-Z before creating signature
- For tokenization, exclude sensitive card fields from signature
- Use UTF-8 encoding for all parameters
Important: For tokenization requests, exclude these fields from signature calculation:
card_security_code(CVV)card_numberexpiry_datecard_holder_nameremember_me
📖 See: Signature Guide with step-by-step instructions
Error Message: "token name doesn't exist"
This error has different causes depending on where it occurs:
For Regular Payments:
- Token has expired (tokens have limited lifetime)
- Token wasn't saved properly for future use
- You're trying to use a test token in production
- You're using a token created on account x in account y.
How to fix:
- Generate fresh tokens for each payment session
- Ensure environment consistency (test with test, live with live)
- For saved cards, verify token was stored correctly
- Make sure you process the transaction with the token on the same account you created the token in
📖 See: Save Card Service for token management
Error Message: "Invalid Access Code"
This happens when:
- Wrong access code from Security Settings
- Extra spaces in the access code
- Using sandbox access code in production (or vice versa)
How to fix:
- Copy exact access code from APS dashboard
- Check for extra spaces at beginning or end
- Verify you're using the right environment's access code
Error Message: "Operation Amount Exceeds Authorized Amount"
This happens when:
- Trying to capture more than the authorized amount
- Trying to refund more than was captured
- Multiple partial captures/refunds exceed the original amount
How to fix:
- Use Check Status API to verify available amounts
- Check your capture/refund amounts
- Ensure you're not exceeding the original transaction amount
Error Message: "Transaction Declined"
This means:
- The card issuer declined the transaction
- Could be due to insufficient funds, card restrictions, or security measures
How to fix:
- Ask customer to contact their bank
- Try a different payment method
- Check if the card supports online transactions
- Verify the card details are correct
Error Message: "Card Expired"
This happens when:
- The payment card expiry date has passed
- Wrong expiry date format was used
How to fix:
- Customer needs to update card details with new expiry date
- Verify expiry date format is correct (MM/YY)
- Check if customer has a renewed card
Error Message: "Invalid CVV"
This happens when:
- Wrong security code entered
- CVV format is incorrect
How to fix:
- Customer should re-enter the 3-digit code from back of card
- For American Express, use 4-digit code from front of card
- Verify CVV field accepts the correct number of digits
Integration and Payment Operations
The basic payment flow:
- Tokenize the card details (converts sensitive card info to a secure token)
- Process Payment using the token instead of card details
- Handle Response (success, failure, or 3D Secure redirect)
Key points:
- Tokens keep card details secure
- Always validate responses
- Handle 3D Secure redirects when required
📖 See: Custom Integration Guide for complete flow
You have four options:
1. Direct Response - Get immediate response after payment
2. Webhooks - APS sends updates to your server automatically
3. Check Status API - Query payment status anytime
4. Reports - View transaction details through APS dashboard reports
📖 See: Check Status Guide, Webhooks Guide, and Reporting Guide
PURCHASE:
- Takes money immediately (authorize + capture in one step)
- Use for: Regular online purchases, digital goods
- Cannot be voided (only refunded)
AUTHORIZATION:
- Holds money temporarily without taking it
- Use for: Pre-orders, hotel bookings, variable amounts
- Can be captured later or voided (cancelled)
Choose based on your business needs:
- Immediate payment = PURCHASE
- Hold first, charge later = AUTHORIZATION
📖 See: Custom Integration Guide for implementation details
Three ways to get payment results:
1. Return URL - Customer redirected back to your site
2. Direct Feedback - Immediate response to your server
3. Notification URL - Webhook for status updates
Best practice: Use multiple methods for reliability
- Return URL for customer experience
- Webhooks for backend processing
- Check Status API as backup
📖 See: Webhooks Guide for setup instructions
Apple Pay Integration
This error is usually about certificates:
Common causes:
- Payment Processing Certificate not uploaded to your APS account
- Using wrong certificate (sandbox vs production)
- Certificate expired or invalid
How to fix:
- Get certificate from Apple Developer portal
- Upload to APS account under Apple Pay Settings
- Verify certificate shows as "Active"
- Match environments (sandbox cert = sandbox account)
📖 See: Apple Pay Guide for certificate setup
Apple Pay has specific requirements:
Check these:
- Using Apple device (iPhone, iPad, Mac)
- Safari browser (required for web)
- HTTPS website (mandatory)
- Apple Pay supported in your country
- Customer has cards in Apple Wallet
How to fix:
- Test on actual Apple devices
- Ensure your site uses HTTPS
- Check Apple Pay availability in your region
📖 See: Apple Pay Guide for requirements
For testing you need:
- Sandbox Tester Account from Apple Developer portal
- Test Cards added to Apple Wallet
- Sandbox APS Account with test certificate
Steps:
- Create sandbox tester in Apple Developer portal
- Sign into device with tester account
- Add test cards to Apple Wallet
- Use sandbox APS environment for testing
📖 See: Test Cards Guide for test card numbers
Services and Features
Tokenization converts card details into secure tokens for future use.
How it works:
- Customer enters card details for first payment
- APS creates a secure token
- You save the token (not card details)
- Use token for future payments
Benefits:
- Enhanced security (no card data stored)
- Faster checkout for returning customers
- PCI compliance simplified
📖 See: Save Card Guide for implementation
Installments let customers pay in monthly installments.
Requirements:
- Only works with Credit Cards (not debit cards like MADA/MEEZA)
- Must use PURCHASE command (not AUTHORIZATION)
- Need to be activated by APS support
Types:
- Hosted: APS shows installment options
- Custom: You display options and collect choice
Contact: merchantsupport-ps@amazon.com to activate
📖 See: Installments Guide
3D Secure adds extra security by redirecting customers to their bank.
The flow:
- Submit payment request
- If 3DS required, APS returns 3ds_url
- Redirect customer to 3ds_url
- Customer completes bank authentication
- Customer returns to your site with result
Response codes:
- "20064" = 3D Secure check requested
- Redirect customer to the provided URL
📖 See: 3D Secure Guide for implementation
COF lets you store customer payment details for subscriptions.
Two types:
- Scheduled: Fixed amounts at regular intervals
- Unscheduled: Variable amounts when needed
Use cases:
- Subscription services
- Utility bill payments
- Top-up services
Benefits:
- Better customer experience
- Higher success rates
- Automated billing
📖 See: Save Card Guide for COF setup
Mobile SDK Integration
SDK tokens are required for mobile app payments.
Why needed:
- Keeps your security credentials safe
- Prevents reverse engineering
- Required for each payment session
Process:
- Your mobile app requests token from your server
- Your server generates token using APS API
- Server returns token to mobile app
- App uses token for payment
Important: Generate new token for each payment (mandatory)
📖 See: Mobile Integration Guide
Direct Pay allows secure payments using saved card tokens in mobile apps.
Benefits:
- Faster checkout (no card entry needed)
- Uses previously saved cards
- Enhanced security with tokenization
Requirements:
- Customer must have saved cards (tokens)
- Valid SDK token for the session
- Proper mobile SDK integration
📖 See: Mobile Integration Guide for setup
Customization options vary by platform:
Native Mobile SDK (iOS/Android):
- ✅ Full customization available
- Can modify layouts, colors, text
- Must keep required elements with IDs
React Native SDK:
- ✅ Multiple customization options
- Can match your app's branding
Flutter SDK:
- ❌ Limited to standard checkout only
- No customization allowed