You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -211,17 +211,166 @@ public async Task RevokeMandate(string mandateId)
211
211
}
212
212
```
213
213
214
-
## Mandate States
214
+
## Mandate Status
215
215
216
-
A mandate can be in one of the following states:
216
+
Mandates transition through various statuses during their lifecycle. Understanding these statuses helps you track mandate progress and handle different scenarios appropriately.
217
217
218
-
| State | Description |
219
-
|-------|-------------|
220
-
|`AuthorizationRequired`| User needs to authorize the mandate |
221
-
|`Authorizing`| Authorization is in progress |
222
-
|`Authorized`| Mandate is active and can be used for payments |
223
-
|`Failed`| Mandate authorization failed |
224
-
|`Revoked`| Mandate has been cancelled |
218
+
For complete details, see the [TrueLayer Mandate Status documentation](https://docs.truelayer.com/docs/mandate-statuses).
219
+
220
+
### Status Overview
221
+
222
+
| Status | Description | Terminal | Notes |
223
+
|--------|-------------|----------|-------|
224
+
|`authorization_required`| Mandate created but no further action taken | No | User needs to authorize the mandate |
225
+
|`authorizing`| User has started but not completed authorization journey | No | Wait for webhook notification |
226
+
|`authorized`| User has successfully completed authorization flow | No | Mandate is active and can be used for payments |
227
+
|`revoked`| Mandate has been cancelled | Yes | Can be revoked by client or user's bank |
228
+
|`failed`| Mandate could not be authorized | Yes | Check `FailureReason` for details |
229
+
230
+
### Common Failure Reasons
231
+
232
+
When a mandate reaches `failed` status, check the `FailureReason` property for details:
233
+
234
+
| Failure Reason | Description |
235
+
|----------------|-------------|
236
+
|`authorization_failed`| User failed to complete authorization |
237
+
|`provider_error`| Error with the provider/bank |
238
+
|`provider_rejected`| Provider rejected the mandate |
Copy file name to clipboardExpand all lines: docs/articles/payments.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
Create and manage payments using the TrueLayer Payments API. Payments allow you to initiate bank transfers from your users' accounts.
4
4
5
+
> **See also**: The [MVC Example](https://github.com/TrueLayer/truelayer-dotnet/tree/main/examples/MvcExample) demonstrates a complete payment flow in [PaymentsController.cs](https://github.com/TrueLayer/truelayer-dotnet/blob/main/examples/MvcExample/Controllers/PaymentsController.cs).
6
+
5
7
## Basic Payment Creation
6
8
7
9
### User-Selected Provider
@@ -95,7 +97,11 @@ var request = new CreatePaymentRequest(
95
97
96
98
## Beneficiary Types
97
99
98
-
### External Account (Sort Code & Account Number)
100
+
### External Account
101
+
102
+
Pay to an external bank account using different account identifier types:
103
+
104
+
#### Sort Code & Account Number
99
105
100
106
```csharp
101
107
varbeneficiary=newBeneficiary.ExternalAccount(
@@ -105,7 +111,7 @@ var beneficiary = new Beneficiary.ExternalAccount(
105
111
);
106
112
```
107
113
108
-
### IBAN
114
+
####IBAN
109
115
110
116
```csharp
111
117
varbeneficiary=newBeneficiary.ExternalAccount(
@@ -160,7 +166,9 @@ var user = new PaymentUserRequest(
160
166
161
167
### Recommended Approach
162
168
163
-
The recommended way to use TrueLayer's Hosted Payment Page is to include `HostedPageRequest` when creating the payment. This ensures the HPP URL is generated with the payment and returned in the response:
169
+
The recommended way to use TrueLayer's Hosted Payment Page is to include `HostedPageRequest` when creating the payment. This ensures the HPP URL is generated with the payment and returned in the response.
170
+
171
+
> **See also**: The [MVC Example](https://github.com/TrueLayer/truelayer-dotnet/tree/main/examples/MvcExample) uses `HostedPageRequest` in [PaymentsController.cs](https://github.com/TrueLayer/truelayer-dotnet/blob/main/examples/MvcExample/Controllers/PaymentsController.cs#L51-L69).
164
172
165
173
```csharp
166
174
varhostedPage=newHostedPageRequest(
@@ -250,6 +258,8 @@ Payments transition through various statuses as they progress. Understanding the
250
258
251
259
For complete details, see the [TrueLayer Payment Status documentation](https://docs.truelayer.com/docs/payment-statuses).
252
260
261
+
> **See also**: The [MVC Example](https://github.com/TrueLayer/truelayer-dotnet/tree/main/examples/MvcExample) demonstrates handling all payment statuses in [PaymentsController.cs](https://github.com/TrueLayer/truelayer-dotnet/blob/main/examples/MvcExample/Controllers/PaymentsController.cs#L114-L161).
Copy file name to clipboardExpand all lines: docs/articles/payouts.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
Process payouts to send funds from your merchant account to beneficiaries. Payouts are perfect for marketplace disbursements, refunds, and payments to suppliers.
4
4
5
+
> **See also**: The [MVC Example](https://github.com/TrueLayer/truelayer-dotnet/tree/main/examples/MvcExample) demonstrates a complete payout flow in [PayoutController.cs](https://github.com/TrueLayer/truelayer-dotnet/blob/main/examples/MvcExample/Controllers/PayoutController.cs).
6
+
5
7
## Basic Payout Creation
6
8
7
9
### Payout to UK Account
@@ -104,6 +106,8 @@ Payouts transition through various statuses as they are processed. Understanding
104
106
105
107
For complete details, see the [TrueLayer Payout and Refund Status documentation](https://docs.truelayer.com/docs/payout-and-refund-statuses).
106
108
109
+
> **See also**: The [MVC Example](https://github.com/TrueLayer/truelayer-dotnet/tree/main/examples/MvcExample) demonstrates handling all payout statuses in [PayoutController.cs](https://github.com/TrueLayer/truelayer-dotnet/blob/main/examples/MvcExample/Controllers/PayoutController.cs#L90-L127).
0 commit comments