Payment Methods Overview
| Method | Use Case | User Experience | Best For |
|---|---|---|---|
| User Payment | Account holders or new users | Redirects to AcountPay portal | Subscriptions, repeat customers |
| Guest Payment | One-time payments | In-page payment flow | Single purchases, checkout flows |
User Payment Method
For users with AcountPay accounts or those who want to create one.Parameters
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | ✅ Yes | Payment amount in major currency units (e.g., 10.50 = $10.50) |
requestId | string | ✅ Yes | Unique request identifier (your order ID) |
callbackURL | string | ✅ Yes | URL the user is returned to after the payment flow |
Basic Implementation
Basic Implementation
Complete Example
Complete Example
Guest Payment Method
For one-time payments without requiring account creation.Parameters
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | ✅ Yes | Payment amount in major currency units |
referenceNumber | string | ✅ Yes | Unique reference number (your order ID) |
onSuccess | function | ❌ No | Success callback function |
onError | function | ❌ No | Error callback function |
Basic Implementation
Basic Implementation
Complete Example
Complete Example
Framework Integration Examples
- React
- Vue.js
Flow Overview
User Payment Flow
User Payment Flow
- SDK Initialization: Initialize with your Client ID
- Payment Request: SDK calls your backend with payment details
- User Portal: Browser redirects to AcountPay user portal where user:
- Creates account or logs in
- Links IBAN to their account
- Authenticates and consents to payment
- Return: User is redirected back to your
callbackURL
Guest Payment Flow
Guest Payment Flow
- SDK Initialization: Initialize with your Client ID
- Payment Interface: SDK opens payment interface
- Bank Selection: User selects their bank
- Bank Authentication: User authenticates with their bank
- Completion: Success/error callbacks are triggered
Error Handling
Common Error Scenarios
Common Error Scenarios
Important Implementation Notes
Real Values Usage
Real Values Usage
Amount Guidelines
Amount Guidelines
- Use major currency units (e.g., 10.50 for $10.50)
- Don’t use smallest currency units (cents/pence)
- Ensure amounts match your actual transaction values
Reference Number Best Practices
Reference Number Best Practices
- Use your internal order ID or transaction reference
- Ensure uniqueness to avoid duplicate payments
- This allows matching successful payments back to orders
Testing
Sandbox Testing
Sandbox Testing
- Use your sandbox Client ID from the dashboard
- Test both payment methods
- Verify callback handling
- Check webhook notifications
Production Checklist
Production Checklist
- Production Client ID configured
- Callback URLs working
- Error handling implemented
- Success flow tested
- Webhook endpoints ready

