Overview
monei.payment_method provides methods to save and manage cards or bank accounts for fast repeat deposits.
Note: All methods return response objects with attributes accessible via dot notation (e.g.,pm.id,pm.last4).
List Payment Methods
Add a Payment Method
Get Payment Method Details
Set Default Payment Method
Delete a Payment Method
Working with Response Objects
All methods return objects with attribute access:Response Types
PaymentMethodDto
PaymentMethodsListDto
Error Handling
All payment method calls may raise an exception if the request fails.Service Overview
| Method | Description |
|---|---|
get_all(sub_wallet_id) | List all payment methods for a wallet |
create(type, card_number, expiry_month, expiry_year, cvv, sub_wallet_id) | Add a new payment method |
get(payment_method_id) | Get payment method details |
set_default(payment_method_id) | Set a payment method as default |
delete(payment_method_id) | Delete a payment method |
Notes
- All methods require a properly configured
MoneiClientinstance with authentication sub_wallet_idis required for listing payment methods- Card details are tokenized and securely stored
- Only the last 4 digits of card numbers are returned for security
- Setting a default payment method automatically updates the previous default
- Deleted payment methods cannot be recovered
- All responses are strongly typed objects with attribute access

