Documentation Index
Fetch the complete documentation index at: https://docs.ecrypt.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Once a customer has a payment method saved to their wallet, you can charge them through the standard transaction endpoints using thepayment.stored object. You can charge either the customer’s default
payment method or a specific wallet entry.
Charge the Default Payment Method
To charge a customer’s default payment method, pass the customerid in payment.stored.customer.
ECRYPT will automatically use whichever wallet entry is marked as default.
Charge a Specific Wallet Payment Method
To charge a specific payment method, pass the wallet entryid in payment.stored.wallet instead.
This is useful when a customer has multiple payment methods on file and you need to target a specific one.
initiatedBy
TheinitiatedBy field indicates who initiated the transaction. This is required for stored
payment method transactions and affects how the transaction is processed at the network level.
| Value | Meaning | Description |
|---|---|---|
0 | Merchant | The merchant initiated the transaction. Used for recurring payments, installments, and agent-assisted charges. |
1 | Customer | The customer initiated the transaction. Used when the customer selects a stored card during checkout. |
Authorize and Capture
If you need to place a hold before capturing, use the authorize endpoint instead of sale. The samepayment.stored object applies.
Transaction Response
A successful charge returns a transaction ID, approval code, and the amount processed.Recurring Payments
Customer wallets are also the foundation for automated recurring billing. ECRYPT supports two models — subscriptions for ongoing recurring charges, and installment plans for splitting a fixed amount into scheduled payments.Subscriptions
Automatically charge a customer’s wallet on a recurring schedule — daily, weekly, monthly, and more.
Installment Plans
Split a total amount into a defined number of scheduled charges against a customer’s wallet.