submit and pay
lallysmbc edited this page Oct 22, 2021
·
4 revisions
This sends the from details to the Submit and Pay Web Service. The required fields
are
- conditions: List
- behaviourType: "SubmitAndPay"
- SubmitSlug: List The SubmitSlug will vary according to the environment
A SubmitSlug consists of
- Environment: string
- URL: string
- AuthToken : string
- callbackUrl: string
callbackUrl
The callbackUrl property is used when third party systems are involved and logic has be performed on the receipt of a response from the third party system. In the current code base this is used when a call is made to invoke Civica Pay and the result outcome specifies whether the payment was successful or not. In this scenario we need the form to behave accordingly.
The model passed to the callbackUrl provided is PostPaymentUpdateRequest. Which contains the Reference passed into the payment provider and the status of the payment.
public class PostPaymentUpdateRequest
{
public string Reference { get; set; }
public EPaymentStatus PaymentStatus { get; set; }
}
"Behaviours": [
{
"conditions": [],
"behaviourType": "SubmitAndPay",
"SubmitSlugs": [
{
"Environment": "local",
"URL": "https://localhost/api/v1/Home/Post",
"AuthToken": "local-authtoken",
"callbackUrl": "http://formsurl/serrvice/api/v1/Home/Post"
},
{
"Environment": "Int",
"URL": "http://int/formbuilderservice/api/v1/Home/Post",
"AuthToken": "int-authtoken",
"callbackUrl": "http://formsurl/serrvice/api/v1/Home/Post"
},
{
"Environment": "QA",
"URL": "http://qa/formbuilderservice/api/v1/Home/Post",
"AuthToken": "qa-authtoken",
"callbackUrl": "http://formsurl/serrvice/api/v1/Home/Post"
},
{
"Environment": "Staging",
"URL": "http://staging/formbuilderservice/api/v1/Home/Post",
"AuthToken": "staging-authtoken",
"callbackUrl": "http://formsurl/serrvice/api/v1/Home/Post"
},
{
"Environment": "Prod",
"URL": "http://prod/formbuilderservice/api/v1/Home/Post",
"AuthToken": "prod-authtoken",
"callbackUrl": "http://formsurl/serrvice/api/v1/Home/Post"
}
]
- Availability
- Actions
- Behaviours
- Breadcrumbs
-
Conditions
- String Conditions
- Date Conditions
- Integer Conditions
- File Upload Conditions
- Custom validation
-
Elements
- AddAnother
- Address
- Button
- Booking
- Checkbox
- Date Input
- Date Picker
- Declaration
- Document Download
- Document Upload
- File Upload
- H1-H6
- HR
- Image
- Inline Alert
- Link
- Map
- Multiple File Upload
- OrderedList
- Organisation
- P
- Radio
- Select
- Street
- Summary
- Success page
- Textarea
- Textbox
- Time input
- Unordered List
- Uploaded files summary
- Warning
- EnabledFor
- Feedback form
- File uploads
- Form Schema
- Header
- Inbound Values
- Integrating with PowerAutomate/0365
- Lookup
- Page
- Payment & Payment calculations
- Preview data structure
- Render conditions
- Reusable elements
- Structure tests
- Success page
- Tag parsers
- Target mapping
- Validators