Overview
This example demonstrates a simplified payment request for alternative payment methods that don’t require card details or browser information.Payment Request
Key Features
Simplified Structure
- No Card Data: No card number, expiration, or CVV required
- No Browser Info: No browserInfo object needed
- Customer Focus: Emphasis on customer identification and contact
Customer Information
- Name: Customer full name for identification
- Email: Primary contact for notifications
- Phone: Secondary contact method
- Address: Complete billing/shipping address
Transaction Details
- Amount: $10.50 USD transaction
- Reference: Merchant tracking ID (123-GA-456)
- Callback URLs: Success, failure, and notification endpoints
Use Cases
Bank Transfers
- Direct bank account debits
- ACH transfers
- Wire transfers
- SEPA payments (Europe)
Digital Wallets
- PayPal
- Skrill
- Neteller
- Regional wallet services
Buy Now, Pay Later
- Klarna
- Afterpay
- Affirm
- Sezzle
Cryptocurrency
- Bitcoin payments
- Ethereum payments
- Stablecoin transactions
- Other crypto assets
Implementation
JavaScript Example
PHP Example
Payment Flow
1. Payment Creation
- Submit payment request with customer details
- Receive payment ID and redirect URL
- Store payment ID for status tracking
2. Customer Redirect
- Redirect customer to provided URL
- Customer completes payment on provider’s page
- Customer returns via success/failure URL
3. Payment Completion
- Receive webhook notification
- Verify payment status
- Update order/account status
- Send confirmation to customer
Advantages
Simplicity
- Minimal Data: Only essential customer information required
- No PCI Compliance: No card data handling needed
- Easy Integration: Simple request structure
Security
- Reduced Risk: No sensitive payment data stored
- Provider Security: Payment handled by specialized providers
- Compliance: Automatic regulatory compliance
Customer Experience
- Familiar Interface: Customers use known payment methods
- Trust: Established payment provider brands
- Convenience: Saved payment methods and preferences
Testing
Test Data
Test Scenarios
- Successful Payment: Complete payment flow
- Cancelled Payment: Customer cancels during payment
- Failed Payment: Insufficient funds or other errors
- Invalid Data: Test validation error handling
Best Practices
Data Validation
- Validate email format and deliverability
- Verify phone number format
- Check address completeness
- Validate country and currency combinations
Error Handling
- Handle network timeouts gracefully
- Provide clear error messages to customers
- Log errors for debugging
- Implement retry mechanisms
Security
- Use HTTPS for all communications
- Validate webhook signatures
- Implement rate limiting
- Monitor for suspicious activity
Next Steps
- Choose appropriate alternative payment methods for your market
- Implement webhook handling for payment notifications
- Set up proper error handling and logging
- Test with real payment providers
- Monitor payment success rates and optimize