|
1 | 1 | # Umbraco.Forms.Integrations.Commerce.emerchantpay
|
2 | 2 |
|
3 |
| -This integration provides a custom workflow for handling online payments using a hosted payment page provided by emerchantpay. |
4 |
| - |
5 |
| -## Prerequisites |
6 |
| - |
7 |
| -Required minimum versions of Umbraco CMS: |
8 |
| -- CMS: 10.1.0 |
9 |
| -- Forms: 10.1.0 |
10 |
| - |
11 |
| -## How To Use |
12 |
| - |
13 |
| -To get started with _emerchantpay_ a merchant would need to be onboarded in order to get a merchant ID and obtain the keys |
14 |
| -required by the integration. |
15 |
| - |
16 |
| -To begin the onboarding process an obtain the merchant account, you would need to fill out [this](https://www.emerchantpay.com/contact-us?utm_source__c=umbraco_referral&utm_medium__c=technical_blog&utm_campaign__c=Umbraco) form. |
17 |
| -Afterwards, a member of the _emerchantpay_ team will reach out to you. |
18 |
| - |
19 |
| -### Customer journey map |
20 |
| -A merchant getting started with emerchantpay and Umbraco will need to make sure that they have an emerchantpay merchant account enabled and then cover these steps: |
21 |
| - |
22 |
| -* Package Installation |
23 |
| -* Site Settings |
24 |
| -* Workflow Setup |
25 |
| - |
26 |
| -### Authentication |
27 |
| - |
28 |
| -All requests to emerchantpay API are authenticated by providing the merchant's username and password. |
29 |
| - |
30 |
| -If the configuration is incomplete, the user will receive an error message. |
31 |
| - |
32 |
| -### Configuration |
33 |
| - |
34 |
| -The emerchantpay API endpoints accept and return XML data. When the form is submitted, two batches of payload data are exchanged: one for handling consumer information and the second one for creating the payment. |
35 |
| - |
36 |
| -A consumer has the following available properties that can be mapped against form fields: |
37 |
| -* Email |
38 |
| -* FirstName |
39 |
| -* LastName |
40 |
| -* Address1 |
41 |
| -* Address2 |
42 |
| -* ZipCode |
43 |
| -* City |
44 |
| -* State |
45 |
| -* Country |
46 |
| -* Phone |
47 |
| - |
48 |
| -The below configuration - consisting of authentication settings, merchant specific details and customizable payment fields - is required. Some configuration items |
49 |
| -are stored as an array of strings or a dictionary, and parsed using a specific service. |
50 |
| - |
51 |
| -``` |
52 |
| -{ |
53 |
| - "Umbraco": { |
54 |
| - "Forms": { |
55 |
| - "Integrations": { |
56 |
| - "Commerce": { |
57 |
| - "Emerchantpay": { |
58 |
| - "Settings": { |
59 |
| - "GatewayBaseUrl": "https://staging.gate.emerchantpay.net/", |
60 |
| - "WpfUrl": "https://staging.wpf.emerchantpay.net/wpf/", |
61 |
| - "Username": "[your_merchant_username]", |
62 |
| - "Password": "[your_merchant_password]", |
63 |
| - "UmbracoBaseUrl": "[your_website_url]", |
64 |
| - "Supplier": "Umbraco", |
65 |
| - "Usage": "Payment Gateway using Umbraco Forms", |
66 |
| - "Currencies": { |
67 |
| - "USD": "US Dollar", |
68 |
| - "EUR": "Euro", |
69 |
| - "GBP": "British Pound", |
70 |
| - "DKK": "Danish Krone" |
71 |
| - }, |
72 |
| - "TransactionTypes": [ "authorize", "sale" ], |
73 |
| - "MappingFields": [ "Email", "FirstName", "LastName" ] |
74 |
| - } |
75 |
| - } |
76 |
| - } |
77 |
| - } |
78 |
| - } |
79 |
| - } |
80 |
| -} |
81 |
| -``` |
82 |
| - |
83 |
| -### Working with the Umbraco Forms - emerchantpay integration |
84 |
| - |
85 |
| -To use it you will need to attach the _emerchantpay Gateway_ to a form and map the _Amount_, _Currency_, _Number of Items_, _Record Status_, _Record Payment Unique ID_ and _Consumer Details_ with matching form fields, then configure the event handlers |
86 |
| -for payment sucessfully processed, failed or cancelled. |
87 |
| - |
88 |
| -When a form is submitted on the website, the workflow will execute and based on it's settings, two data payloads will be sent to emerchantpay for creating or retrieving the details of a consumer, and for creating a payment. |
89 |
| -The response for the second request will provide the URL for the hosted payment page, and the user will the redirected there. |
90 |
| - |
91 |
| -On completing the payment the emerchantpay API will return the user to the page provided in matching event handler of the worklow. |
92 |
| - |
93 |
| - |
94 |
| -### Version History |
95 |
| -* 2.0.3 - Add payment operations logging |
96 |
| -* 2.0.2 - Fix record approve bug |
97 |
| -* 2.0.1 - Add package icon |
98 |
| -* 2.0.0 - Initial release |
99 |
| -* 1.0.3 - Add payment operations logging |
100 |
| -* 1.0.2 - Fix record approve bug |
101 |
| -* 1.0.1 - Add package icon |
102 |
| -* 1.0.0 - Initial release |
| 3 | +Documentation for the __emerchantpay__ integration is available at the [Umbraco documentation website](https://docs.umbraco.com/umbraco-dxp/integrations/emerchantpay-with-umbraco-forms). |
0 commit comments